Module: wine Branch: master Commit: 359de0a90d13b9ec3746c37d32aec8f10d480303 URL: https://source.winehq.org/git/wine.git/?a=commit;h=359de0a90d13b9ec3746c37d3...
Author: Alexandre Julliard julliard@winehq.org Date: Sun Jan 26 10:55:59 2020 +0100
mapi32/tests: Get rid of strcmpW().
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/mapi32/tests/prop.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/dlls/mapi32/tests/prop.c b/dlls/mapi32/tests/prop.c index 4d7fd7be43..5bbddb3809 100644 --- a/dlls/mapi32/tests/prop.c +++ b/dlls/mapi32/tests/prop.c @@ -99,12 +99,6 @@ static ULONG ptTypes[] = { PT_STRING8, PT_BINARY, PT_UNICODE };
-static inline int strcmpW(const WCHAR *str1, const WCHAR *str2) -{ - while (*str1 && (*str1 == *str2)) { str1++; str2++; } - return *str1 - *str2; -} - static void test_PropCopyMore(void) { static char szHiA[] = "Hi!"; @@ -168,7 +162,7 @@ static void test_PropCopyMore(void) "PropCopyMore: Ascii string differs\n"); break; case PT_UNICODE: - ok(strcmpW(lpDest->Value.lpszW, lpSrc->Value.lpszW) == 0, + ok(wcscmp(lpDest->Value.lpszW, lpSrc->Value.lpszW) == 0, "PropCopyMore: Unicode string differs\n"); break; case PT_BINARY: