Marcus Meissner : mshtml: Fixed size passed to MultiByteToWideChar.
Alexandre Julliard
julliard at winehq.org
Fri Feb 6 09:55:45 CST 2009
Module: wine
Branch: master
Commit: ad0a5f1bd25be48a84e587acdce5cad4bbb96c13
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ad0a5f1bd25be48a84e587acdce5cad4bbb96c13
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Thu Feb 5 22:03:59 2009 +0100
mshtml: Fixed size passed to MultiByteToWideChar.
---
dlls/mshtml/install.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/install.c b/dlls/mshtml/install.c
index df8c8be..15f6d93 100644
--- a/dlls/mshtml/install.c
+++ b/dlls/mshtml/install.c
@@ -447,7 +447,7 @@ static LPWSTR get_url(void)
if(size > sizeof(httpW) && !memcmp(url, httpW, sizeof(httpW))) {
strcatW(url, v_formatW);
- MultiByteToWideChar(CP_ACP, 0, GECKO_VERSION, -1, url+strlenW(url), (size-strlenW(url))/sizeof(WCHAR));
+ MultiByteToWideChar(CP_ACP, 0, GECKO_VERSION, -1, url+strlenW(url), size/sizeof(WCHAR)-strlenW(url));
}
TRACE("Got URL %s\n", debugstr_w(url));
More information about the wine-cvs
mailing list