ntdll: Use IsEqualGUID instead of memcmp to compare GUIDs.
authorMichael Stefaniuc <mstefani@redhat.de>
Tue, 27 Jul 2010 08:17:50 +0000 (10:17 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 28 Jul 2010 10:22:26 +0000 (12:22 +0200)
dlls/ntdll/tests/rtlstr.c

index 5dd35008d5d94eebf3338b832140ef5fabdd177a..91233a5a5f28eb4f37abf4ad1e207330c76b4177 100644 (file)
@@ -1841,7 +1841,7 @@ static void test_RtlGUIDFromString(void)
 
   ret = pRtlGUIDFromString(&str, &guid);
   ok(ret == 0, "expected ret=0, got 0x%0x\n", ret);
-  ok(memcmp(&guid, &IID_Endianess, sizeof(guid)) == 0, "Endianess broken\n");
+  ok(IsEqualGUID(&guid, &IID_Endianess), "Endianess broken\n");
 
   str.Length = str.MaximumLength = sizeof(szGuid2) - sizeof(WCHAR);
   str.Buffer = (LPWSTR)szGuid2;