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

Guy Albertelli galberte at neo.rr.com
Tue Jun 2 20:00:15 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 |   11 +++++------
 2 files changed, 12 insertions(+), 6 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2522c8d20751faf4ce8486b0097f4408b90576e7.diff
Type: text/x-patch
Size: 3268 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090602/e2dd2a31/attachment.bin>

More information about the wine-patches mailing list