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@winehq.org Reporter: markau0@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