[ros-diffs] [cwittich] 39398: urlmon: Fixed target buffer length to MBtoWC Marcus Meissner <marcus at jet.franken.de> http://www.winehq.org/pipermail/wine-patches/2009-February/068906.html

cwittich at svn.reactos.org cwittich at svn.reactos.org
Thu Feb 5 08:01:34 CET 2009


Author: cwittich
Date: Thu Feb  5 01:01:34 2009
New Revision: 39398

URL: http://svn.reactos.org/svn/reactos?rev=39398&view=rev
Log:
urlmon: Fixed target buffer length to MBtoWC
Marcus Meissner <marcus at jet.franken.de>

http://www.winehq.org/pipermail/wine-patches/2009-February/068906.html

Modified:
    trunk/reactos/dll/win32/urlmon/umon.c

Modified: trunk/reactos/dll/win32/urlmon/umon.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/urlmon/umon.c?rev=39398&r1=39397&r2=39398&view=diff
==============================================================================
--- trunk/reactos/dll/win32/urlmon/umon.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/urlmon/umon.c [iso-8859-1] Thu Feb  5 01:01:34 2009
@@ -1185,7 +1185,7 @@
     if(szURL) {
         len = MultiByteToWideChar(CP_ACP, 0, szURL, -1, NULL, 0);
         url = heap_alloc(len*sizeof(WCHAR));
-        MultiByteToWideChar(CP_ACP, 0, szURL, -1, url, -1);
+        MultiByteToWideChar(CP_ACP, 0, szURL, -1, url, len);
     }
 
     if(szFileName)



More information about the Ros-diffs mailing list