Aric Stewart : shlwapi: Account for trailing NULL in UrlFixupW.

Alexandre Julliard julliard at winehq.org
Wed Feb 10 10:44:50 CST 2010


Module: wine
Branch: master
Commit: e0b23217fe39107b12f48c6933e2ceb9ad1546cb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e0b23217fe39107b12f48c6933e2ceb9ad1546cb

Author: Aric Stewart <aric at 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);




More information about the wine-cvs mailing list