(resend) [2/2] kernel32: Fix error returns from CreateFile (at least the simple ones).
Guy Albertelli
galberte at neo.rr.com
Tue Jun 2 05:59:33 CDT 2009
Native tests show that if NtCreateFile returns STATUS_FILE_IS_A_DIRECTORY
then CreateFile[AW] should return ERROR_PATH_NOT_FOUND if the requested
filename has a trailing \. Otherwise ERROR_ACCESS_DENIED which is the
correct conversion of the Nt STATUS normally.
Changelog:
- CreateFile[AW] should return ERROR_PATH_NOT_FOUND when
STATUS_FILE_IS_A_DIRECTORY is returned from NtCreateFile and
the requested filename has a trailing \
---
dlls/kernel32/file.c | 7 +++++++
dlls/kernel32/tests/file.c | 11 +++++------
2 files changed, 12 insertions(+), 6 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0d27b838b31af589ae70cc12f4f2960ab9789e1e.diff
Type: text/x-patch
Size: 3268 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090602/2cc0ec12/attachment.bin>
More information about the wine-patches
mailing list