shlwapi: Don't use Unix functions for case sensitive string comparisons.

Francois Gouget fgouget at codeweavers.com
Thu Jun 26 07:07:44 CDT 2008


---
 dlls/shlwapi/string.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c
index 4537ac2..abbfdba 100644
--- a/dlls/shlwapi/string.c
+++ b/dlls/shlwapi/string.c
@@ -511,7 +511,7 @@ LPWSTR WINAPI StrCpyNW(LPWSTR lpszStr, LPCWSTR lpszSrc, int iLen)
  * Internal implementation of StrStrA/StrStrIA
  */
 static LPSTR SHLWAPI_StrStrHelperA(LPCSTR lpszStr, LPCSTR lpszSearch,
-                                   int (*pStrCmpFn)(LPCSTR,LPCSTR,size_t))
+                                   INT (WINAPI *pStrCmpFn)(LPCSTR,LPCSTR,INT))
 {
   size_t iLen;
 
@@ -545,7 +545,7 @@ LPSTR WINAPI StrStrA(LPCSTR lpszStr, LPCSTR lpszSearch)
 {
   TRACE("(%s,%s)\n", debugstr_a(lpszStr), debugstr_a(lpszSearch));
 
-  return SHLWAPI_StrStrHelperA(lpszStr, lpszSearch, strncmp);
+  return SHLWAPI_StrStrHelperA(lpszStr, lpszSearch, StrCmpNA);
 }
 
 /*************************************************************************
@@ -650,7 +650,7 @@ LPSTR WINAPI StrStrIA(LPCSTR lpszStr, LPCSTR lpszSearch)
 {
   TRACE("(%s,%s)\n", debugstr_a(lpszStr), debugstr_a(lpszSearch));
 
-  return SHLWAPI_StrStrHelperA(lpszStr, lpszSearch, strncasecmp);
+  return SHLWAPI_StrStrHelperA(lpszStr, lpszSearch, StrCmpNIA);
 }
 
 /*************************************************************************
-- 
1.5.5.3




More information about the wine-patches mailing list