https://bugs.winehq.org/show_bug.cgi?id=44685
--- Comment #1 from Stan markau0@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:\