From 74bb55108138eb4175b77c267b12e921c9d3c1e4 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 20 Feb 2007 22:52:07 +0100 Subject: [PATCH] shlwapi: Fix size passed to MultiByteToWideChar. --- dlls/shlwapi/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c index 50e608a1015..20c0ba21e33 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; -- 2.11.4.GIT