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:
Zhiyi Zhang 2020-05-18 09:52:03 +08:00 committed by Alexandre Julliard
parent e41058243a
commit 3cbd9cda19
1 changed files with 1 additions and 1 deletions

View File

@ -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)