[Bug 44685] GetVolumePathNameW Path Bug

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Mar 8 21:45:59 CST 2018


https://bugs.winehq.org/show_bug.cgi?id=44685

--- Comment #1 from Stan <markau0 at 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.



More information about the wine-bugs mailing list