https://bugs.winehq.org/show_bug.cgi?id=38772
Bug ID: 38772 Summary: Incorrect GetLastError error of RemoveDirectoryA and CreateDirectory. Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: christopherwuy@gmail.com Distribution: ---
Created attachment 51705 --> https://bugs.winehq.org/attachment.cgi?id=51705 patch
The following patch has a test which shows that RemoveDirectoryA will set incorrect GetLastError error. For example, using RemoveDirectoryA("D:\not_exist_file") will lead to ERROR_PATH_NOT_FOUND in windows while ERROR_FILE_NOT_FOUND in Wine.
I had tried to write a patch to fix it and it worked. However, it causes a set of tests failed in ntdll.
https://bugs.winehq.org/show_bug.cgi?id=38772
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=38772
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=38772
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |download, source CC| |xerox.xerox2000x@gmail.com Ever confirmed|0 |1
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- @Reporter: FYI only one of your tests is failing in current wine :
file.c:3504: Test failed: test_RemoveDirectoryA(): GetLastError expect 3 got 2
That`s this test:
SetLastError(0xdeadbeef); RemoveDirectoryA("N:\abc"); ok(GetLastError() == ERROR_PATH_NOT_FOUND, "test_RemoveDirectoryA(): GetLastError expect %d got %d\n", ERROR_PATH_NOT_FOUND, GetLastError()); `s a bug Could you put that test in kernel32/tests/file?
Confirming anyway there