shlwapi.dll, Fix endless loop in StrPBrkW

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
 }



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux