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

Guy Albertelli galberte at neo.rr.com
Sat Jun 6 19:56:24 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 |    9 ++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

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


More information about the wine-patches mailing list