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:
Nikolay Sivov 2018-12-07 14:00:30 +03:00 committed by Andrew Eikum
parent bd1e1c3005
commit 13c0570212

View File

@ -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);