mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 20:13:38 +00:00
shlwapi: Avoid reading past the pointer in PathCreateFromUrlW (valgrind).
This commit is contained in:
parent
1f713cc567
commit
9dacce1b4e
|
@ -3377,7 +3377,7 @@ HRESULT WINAPI PathCreateFromUrlW(LPCWSTR pszUrl, LPWSTR pszPath,
|
|||
len = src - pszUrl;
|
||||
StrCpyNW(dst, pszUrl, len + 1);
|
||||
dst += len;
|
||||
if (isalphaW(src[1]) && (src[2] == ':' || src[2] == '|'))
|
||||
if (*src && isalphaW(src[1]) && (src[2] == ':' || src[2] == '|'))
|
||||
{
|
||||
/* 'Forget' to add a trailing '/', just like Windows */
|
||||
src++;
|
||||
|
|
Loading…
Reference in a new issue