shlwapi.dll, Fix endless loop in StrPBrkW
Rolf Kalbermatter
rolf.kalbermatter at citeng.com
Mon Mar 3 05:26:59 CST 2003
Changelog
* dlls/shlwapi/string.c
Fix endless loop in StrPBrkW.
License: X11/LGPL
Rolf Kalbermatter
Index: dlls/shlwapi/string.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/string.c,v
retrieving revision 1.31
diff -u -r1.31 string.c
--- dlls/shlwapi/string.c 12 Feb 2003 21:29:20 -0000 1.31
+++ dlls/shlwapi/string.c 3 Mar 2003 11:23:29 -0000
@@ -1116,7 +1116,7 @@
if (StrChrA(lpszMatch, *lpszStr))
return (LPSTR)lpszStr;
lpszStr = CharNextA(lpszStr);
- };
+ }
}
return NULL;
}
@@ -1132,12 +1132,12 @@
if (lpszStr && lpszMatch && *lpszMatch)
{
- while (*lpszStr);
+ while (*lpszStr)
{
if (StrChrW(lpszMatch, *lpszStr))
return (LPWSTR)lpszStr;
lpszStr = CharNextW(lpszStr);
- } while (*lpszStr);
+ }
}
return NULL;
}
More information about the wine-patches
mailing list