Use CP_UNIXCP when translating URL passed on command line to unicode

Dmitry Timoshkov dmitry at codeweavers.com
Sat Mar 4 04:16:26 CST 2006


Hello,

Changelog:
    Use CP_UNIXCP when translating URL passed on command line to unicode.

--- cvs/hq/wine/programs/winebrowser/main.c	2006-02-22 18:04:08.000000000 +0800
+++ wine/programs/winebrowser/main.c	2006-03-04 18:05:40.000000000 +0800
@@ -199,7 +199,7 @@ int main(int argc, char *argv[])
         char *unixpath;
         WCHAR unixpathW[MAX_PATH];
 
-        MultiByteToWideChar( CP_ACP, 0, url, -1, unixpathW, MAX_PATH );
+        MultiByteToWideChar( CP_UNIXCP, 0, url, -1, unixpathW, MAX_PATH );
         if ((unixpath = wine_get_unix_file_name_ptr( unixpathW )))
         {
             struct stat dummy;





More information about the wine-patches mailing list