mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 07:05:46 +03:00
steamclient: Use correct codepage for W -> A conversion.
At this point it's already windows path and it does not cross back to Linux side: Unix -> CP_UNIXCP -> dosW -> CP_ACP -> dosA.
This commit is contained in:
parent
bd1e1c3005
commit
13c0570212
@ -53,7 +53,7 @@ unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src,
|
||||
return 0;
|
||||
}
|
||||
|
||||
r = WideCharToMultiByte(CP_UNIXCP, 0, dosW, -1, dst, dst_bytes,
|
||||
r = WideCharToMultiByte(CP_ACP, 0, dosW, -1, dst, dst_bytes,
|
||||
NULL, NULL);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, dosW);
|
||||
|
Loading…
Reference in New Issue
Block a user