[Bug 41395] New: CreateFile returns a wrong LastError Code when you pass an invalid path

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Sep 26 01:57:25 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=41395

            Bug ID: 41395
           Summary: CreateFile returns a wrong LastError Code when you
                    pass an invalid path
           Product: Wine
           Version: unspecified
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: kernel32
          Assignee: wine-bugs at winehq.org
          Reporter: Christoph at ApiViewer.de
      Distribution: ---

CreateFile returns a wrong LastError Code when you pass an invalid path.


Testcase:


CreateFileA("C:C:\\Windows", GENERIC_READ, FILE_SHARE_READ,
              NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
     todo_wine ok( GetLastError() == ERROR_INVALID_NAME, "Wrong LastError %d,
expected ERROR_INVALID_NAME\n", GetLastError() );




Which also means the code in cryptnet_main:1025 to line 1048 must be wrong.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list