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... ============================================================================== --- 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)