shlwapi: Account for trailing NULL in UrlFixupW.
This commit is contained in:
parent
6f6f1c9338
commit
e0b23217fe
|
@ -2441,7 +2441,7 @@ HRESULT WINAPI UrlFixupW(LPCWSTR url, LPWSTR translatedUrl, DWORD maxChars)
|
||||||
if (!url)
|
if (!url)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
srcLen = lstrlenW(url);
|
srcLen = lstrlenW(url) + 1;
|
||||||
|
|
||||||
/* For now just copy the URL directly */
|
/* For now just copy the URL directly */
|
||||||
lstrcpynW(translatedUrl, url, (maxChars < srcLen) ? maxChars : srcLen);
|
lstrcpynW(translatedUrl, url, (maxChars < srcLen) ? maxChars : srcLen);
|
||||||
|
|
Loading…
Reference in New Issue