diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-05-07 12:49:07 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-05-07 12:49:07 +0000 |
commit | f39f88d0a91cf016de9d607af05072cf13d526bc (patch) | |
tree | bd009a7a037f651e02fd71047e07a25db5cdf543 /pjlib/src/pj/file_io_win32.c | |
parent | eef1e2e01ffea785b7733e1013e3f861c49d9800 (diff) |
Ticket #825: FILE_APPEND_DATA is not valid on Smartphone/Pocket PC2003 and Windows Mobile 5, so remove the flag when PJ_WIN32_WINCE is set (thanks Robert Cichielo for the suggestion)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2681 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/file_io_win32.c')
-rw-r--r-- | pjlib/src/pj/file_io_win32.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pjlib/src/pj/file_io_win32.c b/pjlib/src/pj/file_io_win32.c index 35742798..50d416ff 100644 --- a/pjlib/src/pj/file_io_win32.c +++ b/pjlib/src/pj/file_io_win32.c @@ -59,7 +59,14 @@ PJ_DEF(pj_status_t) pj_file_open( pj_pool_t *pool, if ((flags & PJ_O_WRONLY) == PJ_O_WRONLY) { dwDesiredAccess |= GENERIC_WRITE; if ((flags & PJ_O_APPEND) == PJ_O_APPEND) { +#if !defined(PJ_WIN32_WINCE) || !PJ_WIN32_WINCE + /* FILE_APPEND_DATA is invalid on WM2003 and WM5, but it seems + * to be working on WM6. All are tested on emulator though. + * Removing this also seem to work (i.e. data is appended), so + * I guess this flag is "optional". + */ dwDesiredAccess |= FILE_APPEND_DATA; +#endif dwCreationDisposition |= OPEN_ALWAYS; } else { dwDesiredAccess &= ~(FILE_APPEND_DATA); |