mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:33:16 +00:00
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 svn path=/trunk/; revision=39398
This commit is contained in:
parent
2ba1713711
commit
0a683381ae
1 changed files with 1 additions and 1 deletions
|
@ -1185,7 +1185,7 @@ HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN lpUnkCaller, LPCSTR szURL, LPST
|
||||||
if(szURL) {
|
if(szURL) {
|
||||||
len = MultiByteToWideChar(CP_ACP, 0, szURL, -1, NULL, 0);
|
len = MultiByteToWideChar(CP_ACP, 0, szURL, -1, NULL, 0);
|
||||||
url = heap_alloc(len*sizeof(WCHAR));
|
url = heap_alloc(len*sizeof(WCHAR));
|
||||||
MultiByteToWideChar(CP_ACP, 0, szURL, -1, url, -1);
|
MultiByteToWideChar(CP_ACP, 0, szURL, -1, url, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(szFileName)
|
if(szFileName)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue