Marcus Meissner : shlwapi: Fix size passed to MultiByteToWideChar.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 21 06:00:58 CST 2007


Module: wine
Branch: master
Commit: 74bb55108138eb4175b77c267b12e921c9d3c1e4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=74bb55108138eb4175b77c267b12e921c9d3c1e4

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Feb 20 22:52:07 2007 +0100

shlwapi: Fix size passed to MultiByteToWideChar.

---

 dlls/shlwapi/url.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c
index 50e608a..20c0ba2 100644
--- a/dlls/shlwapi/url.c
+++ b/dlls/shlwapi/url.c
@@ -191,7 +191,7 @@ HRESULT WINAPI ParseURLA(LPCSTR x, PARSEDURLA *y)
     y->cchSuffix = lstrlenA(y->pszSuffix);
 
     len = MultiByteToWideChar(CP_ACP, 0, y->pszProtocol, y->cchProtocol,
-                              scheme, sizeof(scheme));
+                              scheme, sizeof(scheme)/sizeof(WCHAR));
     y->nScheme = get_scheme_code(scheme, len);
 
     return S_OK;




More information about the wine-cvs mailing list