kernelbase: Check NULL canonicalized_len parameter in UrlCanonicalizeW().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49175 Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e41058243a
commit
3cbd9cda19
|
@ -3521,7 +3521,7 @@ HRESULT WINAPI UrlCanonicalizeW(const WCHAR *src_url, WCHAR *canonicalized, DWOR
|
|||
|
||||
TRACE("%s, %p, %p, %#x\n", wine_dbgstr_w(src_url), canonicalized, canonicalized_len, flags);
|
||||
|
||||
if (!src_url || !canonicalized || !canonicalized || !*canonicalized_len)
|
||||
if (!src_url || !canonicalized || !canonicalized_len || !*canonicalized_len)
|
||||
return E_INVALIDARG;
|
||||
|
||||
if (!*src_url)
|
||||
|
|
Loading…
Reference in New Issue