[Bug 46816] New: Incorrect behavior of SHFileOperation
https://bugs.winehq.org/show_bug.cgi?id=46816 Bug ID: 46816 Summary: Incorrect behavior of SHFileOperation Product: Wine Version: 4.0 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: shell32 Assignee: wine-bugs(a)winehq.org Reporter: rndltrz(a)hotmail.com Distribution: --- Behavior of SHFileOperation differs from windows. Here is some trivial code that copies a directory: const wchar_t *const sourceDir = L"C:\\TestDir\0\0"; const wchar_t *const destDir = L"C:\\TestDir2\0\0"; SHFILEOPSTRUCTW do_copy = { 0 }; do_copy.wFunc = FO_COPY; do_copy.fFlags = FOF_NOCONFIRMMKDIR | FOF_NOCONFIRMATION | FOF_NO_UI; do_copy.pFrom = sourceDir; do_copy.pTo = destDir; SHFileOperationW(&do_copy); If you add trailing backslash to destDir: const wchar_t *const destDir = L"C:\\TestDir2\\\0\0"; On Windows result would be the same. However, on WINE+linux result would be different: no backslashes: $ls TestDir file.txt Subdir1 Subdir2 $ls TestDir2 file.txt Subdir1 Subdir2 with trailing backslash: $ls TestDir file.txt Subdir1 Subdir2 $ls TestDir2 TestDir This causes issues with programs that rely on Windows behavior. -- 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=46816 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de Keywords| |testcase Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Fabian Maurer <dark.shadow4(a)web.de> --- Confirming. -- 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.
http://bugs.winehq.org/show_bug.cgi?id=46816 Ziqing Hui <zhui(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zhui(a)codeweavers.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.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla