[Bug 44685] New: GetVolumePathNameW Path Bug
https://bugs.winehq.org/show_bug.cgi?id=44685 Bug ID: 44685 Summary: GetVolumePathNameW Path Bug Product: Wine Version: 3.3 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: kernel32 Assignee: wine-bugs(a)winehq.org Reporter: markau0(a)lycos.com Distribution: --- volumenameW contains a path with unix / characters but the GetVolumePathNameW loop routine uses a strrchrW function looking for backslash's in volumenameW and the returned volumename is then incorrect. changing c = strrchrW( volumenameW, '\\' ); to c = strrchrW( volumenameW, '/' ); results in correct volumename being returned. Affects any windows app using GetVolumePathNameW and is mentioned in bug reports https://bugs.winehq.org/show_bug.cgi?id=42446 https://bugs.winehq.org/show_bug.cgi?id=43240 -- 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=44685 --- Comment #1 from Stan <markau0(a)lycos.com> --- Multiple windows apps are getting the wrong volume info and it might lead to strange behaviours with those apps. The bug was only brought out by Native Instruments "Native Access" halting on the bug whereas other apps probably just proceed with the wrong volume info which might affect other functions down the line in those apps. The printout of GetVolumePathNameW volumenameW is a path with forward slashes ie "C:/home/user/.wine/drive_c/Program Files/App/App.exe" then the loop code traverses that path starting at the end and moving toward the start but the loop code is searching for backslash's in volumenameW which don't exist and the loop breaks after one iteration and the return volume path is the original path with slash's converted to double backslashes with an extra backslash on the end which is useless for GetVolumeInformationW which flags an error. GetVolumePathNameW returns "C:\\home\\user\\.wine\\drive_c\\Program Files\\App\\App.exe\\" whereas it should return C:\ -- 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=44685 Zebediah Figura <z.figura12(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12(a)gmail.com Severity|major |normal Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #2 from Zebediah Figura <z.figura12(a)gmail.com> --- There's no reason to file a separate bug; the cause is already identified and described in bug 42446. If bug 43240 is indeed the same bug then it should also be marked a duplicate. *** This bug has been marked as a duplicate of bug 42446 *** -- 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=44685 Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- Closing Duplicates -- 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