Commit 4c2bb6ca authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shdocvw: Pass correct buffer size to UrlApplySchemeW.

parent d230fad0
...@@ -486,7 +486,7 @@ static HRESULT create_moniker(LPCWSTR url, IMoniker **mon) ...@@ -486,7 +486,7 @@ static HRESULT create_moniker(LPCWSTR url, IMoniker **mon)
return hres; return hres;
} }
}else { }else {
size = sizeof(new_url); size = sizeof(new_url)/sizeof(WCHAR);
hres = UrlApplySchemeW(url, new_url, &size, URL_APPLY_GUESSSCHEME); hres = UrlApplySchemeW(url, new_url, &size, URL_APPLY_GUESSSCHEME);
TRACE("got %s\n", debugstr_w(new_url)); TRACE("got %s\n", debugstr_w(new_url));
if(FAILED(hres)) { if(FAILED(hres)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment