Francois Gouget : setupapi/tests: There is no strncasecmp() on
Windows. So use CompareString() instead.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 29 08:05:42 CDT 2007
Module: wine
Branch: master
Commit: b6a2102d340d9ed5a7b61dbba8bba962fe2b6e65
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b6a2102d340d9ed5a7b61dbba8bba962fe2b6e65
Author: Francois Gouget <fgouget at free.fr>
Date: Mon May 28 01:12:12 2007 +0200
setupapi/tests: There is no strncasecmp() on Windows. So use CompareString() instead.
---
dlls/setupapi/tests/misc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/setupapi/tests/misc.c b/dlls/setupapi/tests/misc.c
index 1c193e1..f8750b6 100644
--- a/dlls/setupapi/tests/misc.c
+++ b/dlls/setupapi/tests/misc.c
@@ -25,6 +25,7 @@
#include "windef.h"
#include "winbase.h"
+#include "winnls.h"
#include "winuser.h"
#include "winreg.h"
#include "setupapi.h"
@@ -97,7 +98,7 @@ static BOOL check_format(LPSTR path, LPSTR inf)
GetWindowsDirectory(check, MAX_PATH);
lstrcat(check, format);
- res = !strncasecmp(check, path, lstrlen(check)) &&
+ res = CompareString(LOCALE_SYSTEM_DEFAULT, NORM_IGNORECASE, check, -1, path, lstrlen(check)) == CSTR_EQUAL &&
path[lstrlen(check)] != '\\';
return (!inf) ? res : res && (inf == path + lstrlen(check) - 3);
More information about the wine-cvs
mailing list