Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#825 closed defect (fixed)

FILE_APPEND_DATA is not valid on Smartphone/Pocket PC2003 and Windows Mobile 5 (thanks Robert Cichielo for the suggestion)

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.2
Component: pjlib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp)

On Windows targets, when PJ_O_APPEND flag is specified, PJLIB will add FILE_APPEND_DATA value to dwDesiredAccess parameter to CreateFile(). This will cause CreateFile() to fail with "Invalid argument" error on PPC2003 and WM5. On the other hand, it seems to work fine with Windows Mobile 6. (Note: tested on emulators only).

Removing the FILE_APPEND_DATA does not cause the file to be truncated, so it seems that this flag is optional anyway (?).

The corresponding ticket for the 1.0 branch is ticket #826

Thanks Robert Cichielo for the suggestion.

Change History (3)

comment:1 Changed 10 years ago by bennylp

  • Description modified (diff)

comment:2 Changed 10 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r2681

comment:3 Changed 10 years ago by bennylp

In r2682:

  • added link to the ticket URL in the code comment
Note: See TracTickets for help on using tickets.