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@winehq.org Reporter: Christoph@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.
https://bugs.winehq.org/show_bug.cgi?id=41395
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #1 from winetest@luukku.com --- Could you form a patch and send it over wine-devel/patches?
https://bugs.winehq.org/show_bug.cgi?id=41395
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #2 from Gijs Vermeulen gijsvrm@gmail.com --- Still present with wine-8.13.
The testcase was added here: https://gitlab.winehq.org/wine/wine/-/commit/82856af5fafa3cdcf6410be24d77382...