[Bug 38772] New: Incorrect GetLastError error of RemoveDirectoryA and CreateDirectory.
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(a)winehq.org Reporter: christopherwuy(a)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. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=38772 Qian Hong <fracting(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting(a)gmail.com -- 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.
https://bugs.winehq.org/show_bug.cgi?id=38772 super_man(a)post.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man(a)post.com -- 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.
https://bugs.winehq.org/show_bug.cgi?id=38772 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |download, source CC| |xerox.xerox2000x(a)gmail.com Ever confirmed|0 |1 --- Comment #1 from Louis Lenders <xerox.xerox2000x(a)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 -- 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.
participants (1)
-
wine-bugs@winehq.org