[PATCH] fixed size passed to MultiByteToWideChar

Marcus Meissner marcus at jet.franken.de
Tue Feb 20 15:52:07 CST 2007


---
 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, PARSE
     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;
-- 
1.4.3.4



More information about the wine-patches mailing list