(resend) kernel32: Fix error returns from CreateFile (at least the simple ones).

Guy Albertelli galberte at neo.rr.com
Mon Jun 15 21:48:29 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.

Tests were committed here:

  - 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 |    9 ++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: c304cdbade2a359137c56be82761d1a006fdcd02.diff
Type: text/x-patch
Size: 3412 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090615/614c8e04/attachment.bin>

More information about the wine-patches mailing list