From: Hans Leidekker hans@codeweavers.com
--- programs/findstr/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/findstr/main.c b/programs/findstr/main.c index 645ab1cbfc7..c0fc9114be5 100644 --- a/programs/findstr/main.c +++ b/programs/findstr/main.c @@ -87,7 +87,7 @@ static inline char *strdupWA(const WCHAR *src) if (src) { int len = WideCharToMultiByte(GetOEMCP(), 0, src, -1, NULL, 0, NULL, NULL); - if ((dst = malloc(len))) WideCharToMultiByte(CP_ACP, 0, src, -1, dst, len, NULL, NULL); + if ((dst = malloc(len))) WideCharToMultiByte(GetOEMCP(), 0, src, -1, dst, len, NULL, NULL); } return dst; }