Commit 4adefb68 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

winmm: Use wine_dbg_sprintf() in a few debug utility functions.

parent 7209cb89
......@@ -151,8 +151,6 @@ static UINT MCI_GetDriverFromString(LPCWSTR lpstrName)
*/
const char* MCI_MessageToString(UINT wMsg)
{
static char buffer[100];
#define CASE(s) case (s): return #s
switch (wMsg) {
......@@ -216,8 +214,7 @@ const char* MCI_MessageToString(UINT wMsg)
CASE(MCI_RESTORE);
#undef CASE
default:
sprintf(buffer, "MCI_<<%04X>>", wMsg);
return buffer;
return wine_dbg_sprintf("MCI_<<%04X>>", wMsg);
}
}
......
......@@ -104,7 +104,6 @@ static void WINMM_DeleteIData(void)
const char* WINMM_ErrorToString(MMRESULT error)
{
#define ERR_TO_STR(dev) case dev: return #dev
static char unknown[32];
switch (error) {
ERR_TO_STR(MMSYSERR_NOERROR);
ERR_TO_STR(MMSYSERR_ERROR);
......@@ -132,9 +131,8 @@ const char* WINMM_ErrorToString(MMRESULT error)
ERR_TO_STR(WAVERR_UNPREPARED);
ERR_TO_STR(WAVERR_SYNC);
}
sprintf(unknown, "Unknown(0x%08x)", error);
return unknown;
#undef ERR_TO_STR
return wine_dbg_sprintf("Unknown(0x%08x)", error);
}
/**************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment