Commit e0b23217 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

shlwapi: Account for trailing NULL in UrlFixupW.

parent 6f6f1c93
......@@ -2441,7 +2441,7 @@ HRESULT WINAPI UrlFixupW(LPCWSTR url, LPWSTR translatedUrl, DWORD maxChars)
if (!url)
return E_FAIL;
srcLen = lstrlenW(url);
srcLen = lstrlenW(url) + 1;
/* For now just copy the URL directly */
lstrcpynW(translatedUrl, url, (maxChars < srcLen) ? maxChars : srcLen);
......
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