Aric Stewart : shlwapi: Account for trailing NULL in UrlFixupW.
Module: wine Branch: master Commit: e0b23217fe39107b12f48c6933e2ceb9ad1546cb URL: http://source.winehq.org/git/wine.git/?a=commit;h=e0b23217fe39107b12f48c6933... Author: Aric Stewart <aric(a)codeweavers.com> Date: Tue Feb 9 12:53:45 2010 -0600 shlwapi: Account for trailing NULL in UrlFixupW. --- dlls/shlwapi/url.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c index 19083dc..d3dea24 100644 --- a/dlls/shlwapi/url.c +++ b/dlls/shlwapi/url.c @@ -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);
participants (1)
-
Alexandre Julliard