Michael Stefaniuc : webservices/tests: Use IsEqualGUID() to compare GUIDs.

Alexandre Julliard julliard at winehq.org
Thu Sep 29 10:17:12 CDT 2016


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Sep 29 12:19:53 2016 +0200

webservices/tests: Use IsEqualGUID() to compare GUIDs.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/webservices/tests/reader.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/webservices/tests/reader.c b/dlls/webservices/tests/reader.c
index 4a1f8de..9d3cd75 100644
--- a/dlls/webservices/tests/reader.c
+++ b/dlls/webservices/tests/reader.c
@@ -1590,7 +1590,7 @@ static void test_WsReadType(void)
     hr = WsReadType( reader, WS_ELEMENT_CONTENT_TYPE_MAPPING, WS_GUID_TYPE, NULL,
                      WS_READ_REQUIRED_VALUE, heap, &val_guid, sizeof(val_guid), NULL );
     ok( hr == S_OK, "got %08x\n", hr );
-    ok( !memcmp( &val_guid, &guid1, sizeof(val_guid) ), "wrong guid\n" );
+    ok( IsEqualGUID( &val_guid, &guid1 ), "wrong guid\n" );
 
     memset( &val_guid, 0, sizeof(val_guid) );
     prepare_type_test( reader, "<t>00000000-0000-0000-0000-0000000000a1</t>",
@@ -1598,7 +1598,7 @@ static void test_WsReadType(void)
     hr = WsReadType( reader, WS_ELEMENT_CONTENT_TYPE_MAPPING, WS_GUID_TYPE, NULL,
                      WS_READ_REQUIRED_VALUE, heap, &val_guid, sizeof(val_guid), NULL );
     ok( hr == S_OK, "got %08x\n", hr );
-    ok( !memcmp( &val_guid, &guid2, sizeof(val_guid) ), "wrong guid\n" );
+    ok( IsEqualGUID( &val_guid, &guid2 ), "wrong guid\n" );
 
     memset( &val_guid, 0, sizeof(val_guid) );
     prepare_type_test( reader, "<t>00000000-0000-0000-0000-0000000000A1</t>",
@@ -1606,7 +1606,7 @@ static void test_WsReadType(void)
     hr = WsReadType( reader, WS_ELEMENT_CONTENT_TYPE_MAPPING, WS_GUID_TYPE, NULL,
                      WS_READ_REQUIRED_VALUE, heap, &val_guid, sizeof(val_guid), NULL );
     ok( hr == S_OK, "got %08x\n", hr );
-    ok( !memcmp( &val_guid, &guid2, sizeof(val_guid) ), "wrong guid\n" );
+    ok( IsEqualGUID( &val_guid, &guid2 ), "wrong guid\n" );
 
     WsFreeReader( reader );
     WsFreeHeap( heap );




More information about the wine-cvs mailing list