=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: mmdevapi/tests: Use common wine_dbgstr_guid implementation from test.h.

Alexandre Julliard julliard at winehq.org
Wed Jan 29 14:53:32 CST 2014


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Sat Jan 25 15:24:35 2014 +0100

mmdevapi/tests: Use common wine_dbgstr_guid implementation from test.h.

---

 dlls/mmdevapi/tests/dependency.c |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/dlls/mmdevapi/tests/dependency.c b/dlls/mmdevapi/tests/dependency.c
index 6744b63..8780565 100644
--- a/dlls/mmdevapi/tests/dependency.c
+++ b/dlls/mmdevapi/tests/dependency.c
@@ -30,17 +30,6 @@
 #include "dshow.h"
 #include "dsound.h"
 
-static inline const char *dump_guid( const GUID *id )
-{
-    static char data[39];
-    if (!id) return "(null)";
-    wsprintfA( data, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
-             id->Data1, id->Data2, id->Data3,
-             id->Data4[0], id->Data4[1], id->Data4[2], id->Data4[3],
-             id->Data4[4], id->Data4[5], id->Data4[6], id->Data4[7] );
-    return data;
-}
-
 START_TEST(dependency)
 {
     HRESULT hr;
@@ -93,7 +82,7 @@ START_TEST(dependency)
             hr = IBaseFilter_GetClassID(bf, &clsid);
             ok(hr == S_OK, "GetClassId failed with 0x%08x\n", hr);
             if (hr == S_OK)
-                ok(IsEqualCLSID(&clsid, &CLSID_DSoundRender), "Wrong class id %s\n", dump_guid(&clsid));
+                ok(IsEqualCLSID(&clsid, &CLSID_DSoundRender), "Wrong class id %s\n", wine_dbgstr_guid(&clsid));
         }
     }
 




More information about the wine-cvs mailing list