Fix wcscmp call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hmmm, wcscmp is actually exported by ntdll too. However there is no
prototype for it in the headers, except in the msvcrt headers. So it's
better to use lstrcmpW. Especially here where lstrcmpW will not be
called on Win9x because the other functions are not implemented either.

Changelog:

 * dlls/ntdll/tests/rtlstr.c
   Call lstrcmpW rather than wcscmp

Index: dlls/ntdll/tests/rtlstr.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/tests/rtlstr.c,v
retrieving revision 1.2
diff -u -r1.2 rtlstr.c
--- dlls/ntdll/tests/rtlstr.c	19 Dec 2002 21:15:41 -0000	1.2
+++ dlls/ntdll/tests/rtlstr.c	27 Dec 2002 18:51:13 -0000
@@ -107,7 +107,7 @@
 	pRtlInitUnicodeString(&uni, teststring);
 	ok(uni.Length == sizeof(teststring) - sizeof(WCHAR), "Length uninitialized");
 	ok(uni.MaximumLength == sizeof(teststring), "MaximumLength uninitialized");
-	ok(wcscmp(uni.Buffer, originalstring) == 0, "Buffer written to");
+	ok(lstrcmpW(uni.Buffer, originalstring) == 0, "Buffer written to");
 }

 static void test_RtlCopyString(void)



-- 
Francois Gouget         fgouget@free.fr        http://fgouget.free.fr/
                  Dieu dit: "M-x Lumière". Et la lumière fut.



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux