=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: dplayx/tests: Use common wine_dbgstr_guid implementation from test.h.
Alexandre Julliard
julliard at winehq.org
Tue Jan 28 13:33:25 CST 2014
Module: wine
Branch: master
Commit: 5332d0e5abe5fd0705df42b9245c06c2c9b35244
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5332d0e5abe5fd0705df42b9245c06c2c9b35244
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Sat Jan 25 15:24:30 2014 +0100
dplayx/tests: Use common wine_dbgstr_guid implementation from test.h.
---
dlls/dplayx/tests/dplayx.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/dlls/dplayx/tests/dplayx.c b/dlls/dplayx/tests/dplayx.c
index fb76c37..7b6c0c0 100644
--- a/dlls/dplayx/tests/dplayx.c
+++ b/dlls/dplayx/tests/dplayx.c
@@ -87,8 +87,6 @@ static LPSTR get_temp_buffer(void)
static LPCSTR Guid2str(const GUID *guid)
{
- LPSTR buffer = get_temp_buffer();
-
if (!guid) return "(null)";
/* Service providers */
@@ -124,12 +122,7 @@ static LPCSTR Guid2str(const GUID *guid)
if (IsEqualGUID(guid, &DPAID_ComPort))
return "DPAID_ComPort";
- sprintf( buffer, "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
- guid->Data1, guid->Data2, guid->Data3,
- guid->Data4[0], guid->Data4[1], guid->Data4[2], guid->Data4[3],
- guid->Data4[4], guid->Data4[5], guid->Data4[6], guid->Data4[7] );
- return buffer;
-
+ return wine_dbgstr_guid(guid);
}
More information about the wine-cvs
mailing list