Marcus Meissner : urlmon: Fixed target buffer length to MultiByteToWideChar .
Alexandre Julliard
julliard at winehq.org
Thu Feb 5 09:20:56 CST 2009
Module: wine
Branch: master
Commit: 8b812b413d9d1d78f1eecd2ae58c50d7d11e44fd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8b812b413d9d1d78f1eecd2ae58c50d7d11e44fd
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Wed Feb 4 21:15:04 2009 +0100
urlmon: Fixed target buffer length to MultiByteToWideChar.
---
dlls/urlmon/umon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/urlmon/umon.c b/dlls/urlmon/umon.c
index 521cfc2..bbaed5b 100644
--- a/dlls/urlmon/umon.c
+++ b/dlls/urlmon/umon.c
@@ -1185,7 +1185,7 @@ HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN lpUnkCaller, LPCSTR szURL, LPST
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 wine-cvs
mailing list