Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4adefb68
Commit
4adefb68
authored
Nov 30, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Use wine_dbg_sprintf() in a few debug utility functions.
parent
7209cb89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
mci.c
dlls/winmm/mci.c
+1
-4
winmm.c
dlls/winmm/winmm.c
+1
-3
No files found.
dlls/winmm/mci.c
View file @
4adefb68
...
...
@@ -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
);
}
}
...
...
dlls/winmm/winmm.c
View file @
4adefb68
...
...
@@ -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
);
}
/**************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment