Module: wine Branch: master Commit: e0338be2d44a285cb1079be7576bba2ae2bfc2e3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e0338be2d44a285cb1079be757...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Jun 26 14:07:44 2008 +0200
shlwapi: Don't use Unix functions for case sensitive string comparisons.
---
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); }
/*************************************************************************