try3 [2/2] kernel32: Fix error returns from CreateFile (at least the simple ones).

Guy Albertelli galberte at
Thu Jun 4 20:43:21 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.

  - 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: 492bde9c5ef4fea630a80b800de1e1dc1b3db081.diff
Type: text/x-patch
Size: 3412 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list