shlwapi: Account for trailing NULL in UrlFixupW.

This commit is contained in:
Aric Stewart 2010-02-09 12:53:45 -06:00 committed by Alexandre Julliard
parent 6f6f1c9338
commit e0b23217fe
1 changed files with 1 additions and 1 deletions

View File

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