From 13c0570212a6efd9e3b7d7c0f50853395160b066 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 7 Dec 2018 14:00:30 +0300 Subject: [PATCH] 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. --- lsteamclient/steamclient_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsteamclient/steamclient_main.c b/lsteamclient/steamclient_main.c index 684682e0..ed17587b 100644 --- a/lsteamclient/steamclient_main.c +++ b/lsteamclient/steamclient_main.c @@ -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);