[PATCH 1/5] dsound: Use wine_dbg_sprintf() in dumpCooperativeLevel().
Henri Verbeet
hverbeet at codeweavers.com
Mon Nov 30 03:22:07 CST 2009
---
dlls/dsound/dsound.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c
index 77a5928..c91ec83 100644
--- a/dlls/dsound/dsound.c
+++ b/dlls/dsound/dsound.c
@@ -113,7 +113,6 @@ static HRESULT DirectSoundDevice_VerifyCertification(DirectSoundDevice * device,
const char * dumpCooperativeLevel(DWORD level)
{
- static char unknown[32];
#define LE(x) case x: return #x
switch (level) {
LE(DSSCL_NORMAL);
@@ -122,8 +121,7 @@ const char * dumpCooperativeLevel(DWORD level)
LE(DSSCL_WRITEPRIMARY);
}
#undef LE
- sprintf(unknown, "Unknown(%08x)", level);
- return unknown;
+ return wine_dbg_sprintf("Unknown(%08x)", level);
}
static void _dump_DSCAPS(DWORD xmask) {
--
1.6.4.4
More information about the wine-patches
mailing list