Ignore:
Timestamp:
May 7, 2009 12:49:07 PM (10 years ago)
Author:
bennylp
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/file_io_win32.c

    r2394 r2681  
    6060        dwDesiredAccess |= GENERIC_WRITE; 
    6161        if ((flags & PJ_O_APPEND) == PJ_O_APPEND) { 
     62#if !defined(PJ_WIN32_WINCE) || !PJ_WIN32_WINCE 
     63            /* FILE_APPEND_DATA is invalid on WM2003 and WM5, but it seems 
     64             * to be working on WM6. All are tested on emulator though. 
     65             * Removing this also seem to work (i.e. data is appended), so 
     66             * I guess this flag is "optional". 
     67             */ 
    6268            dwDesiredAccess |= FILE_APPEND_DATA; 
     69#endif 
    6370            dwCreationDisposition |= OPEN_ALWAYS; 
    6471        } else { 
Note: See TracChangeset for help on using the changeset viewer.