Michael Stefaniuc : ntdll: Use IsEqualGUID instead of memcmp to compare GUIDs.

Alexandre Julliard julliard at winehq.org
Wed Jul 28 10:45:02 CDT 2010


Module: wine
Branch: master
Commit: 76c06a6d9448ef2c29a012bf74c231af28e6a951
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=76c06a6d9448ef2c29a012bf74c231af28e6a951

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Jul 27 10:17:50 2010 +0200

ntdll: Use IsEqualGUID instead of memcmp to compare GUIDs.

---

 dlls/ntdll/tests/rtlstr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c
index 5dd3500..91233a5 100644
--- a/dlls/ntdll/tests/rtlstr.c
+++ b/dlls/ntdll/tests/rtlstr.c
@@ -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;




More information about the wine-cvs mailing list