mirror of
https://github.com/reactos/wine.git
synced 2025-01-23 12:25:17 +00:00
winmm: Use wine_dbg_sprintf() in a few debug utility functions.
This commit is contained in:
parent
7209cb89bb
commit
4adefb689a
@ -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);
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user