Commit 688e0d2e authored by Carlo Bramini's avatar Carlo Bramini Committed by Alexandre Julliard

shlwapi: Add NULL checks to StrCpyW and StrCatW.

(cherry picked from commit f6524a9f)
parent a1a9712b
......@@ -477,7 +477,8 @@ LPWSTR WINAPI StrCatW(LPWSTR lpszStr, LPCWSTR lpszSrc)
{
TRACE("(%s,%s)\n", debugstr_w(lpszStr), debugstr_w(lpszSrc));
strcatW(lpszStr, lpszSrc);
if (lpszStr && lpszSrc)
strcatW(lpszStr, lpszSrc);
return lpszStr;
}
......@@ -497,7 +498,8 @@ LPWSTR WINAPI StrCpyW(LPWSTR lpszStr, LPCWSTR lpszSrc)
{
TRACE("(%p,%s)\n", lpszStr, debugstr_w(lpszSrc));
strcpyW(lpszStr, lpszSrc);
if (lpszStr && lpszSrc)
strcpyW(lpszStr, lpszSrc);
return lpszStr;
}
......
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