shlwapi: Cast-qual warnings fix (3 of 4)
Andrew Talbot
Andrew.Talbot at talbotville.com
Wed Nov 15 16:03:40 CST 2006
Changelog:
shlwapi: Cast-qual warnings fix.
diff -urN a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c
--- a/dlls/shlwapi/string.c 2006-10-25 17:34:54.000000000 +0100
+++ b/dlls/shlwapi/string.c 2006-11-15 21:08:48.000000000 +0000
@@ -1175,10 +1175,12 @@
if (lpszStr && lpszMatch && *lpszMatch)
{
+ LPSTR lpszRet;
+
while (*lpszStr)
{
- if (StrChrA(lpszMatch, *lpszStr))
- return (LPSTR)lpszStr;
+ if ((lpszRet = StrChrA(lpszMatch, *lpszStr)))
+ return lpszRet;
lpszStr = CharNextA(lpszStr);
}
}
@@ -1196,10 +1198,12 @@
if (lpszStr && lpszMatch && *lpszMatch)
{
+ LPWSTR lpszRet;
+
while (*lpszStr)
{
- if (StrChrW(lpszMatch, *lpszStr))
- return (LPWSTR)lpszStr;
+ if ((lpszRet = StrChrW(lpszMatch, *lpszStr)))
+ return lpszRet;
lpszStr = CharNextW(lpszStr);
}
}
More information about the wine-patches
mailing list