Fix endless loop in StrPBrkW.

oldstable
Rolf Kalbermatter 2003-03-04 02:17:47 +00:00 committed by Alexandre Julliard
parent 4ed280fc81
commit a2b7141a01
1 changed files with 3 additions and 3 deletions

View File

@ -1116,7 +1116,7 @@ LPSTR WINAPI StrPBrkA(LPCSTR lpszStr, LPCSTR lpszMatch)
if (StrChrA(lpszMatch, *lpszStr))
return (LPSTR)lpszStr;
lpszStr = CharNextA(lpszStr);
};
}
}
return NULL;
}
@ -1132,12 +1132,12 @@ LPWSTR WINAPI StrPBrkW(LPCWSTR lpszStr, LPCWSTR lpszMatch)
if (lpszStr && lpszMatch && *lpszMatch)
{
while (*lpszStr);
while (*lpszStr)
{
if (StrChrW(lpszMatch, *lpszStr))
return (LPWSTR)lpszStr;
lpszStr = CharNextW(lpszStr);
} while (*lpszStr);
}
}
return NULL;
}