From a2b7141a01d513c4b055c85ca6b881bbd03a1f6f Mon Sep 17 00:00:00 2001 From: Rolf Kalbermatter Date: Tue, 4 Mar 2003 02:17:47 +0000 Subject: [PATCH] Fix endless loop in StrPBrkW. --- dlls/shlwapi/string.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c index c928443bc67..420ea00c94f 100644 --- a/dlls/shlwapi/string.c +++ b/dlls/shlwapi/string.c @@ -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; }