mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
dmusic: Use HIWORD / LOWORD instead of open coding them.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2eac950ab6
commit
f1760e0096
1 changed files with 7 additions and 5 deletions
|
@ -226,11 +226,13 @@ const char *debugstr_fourcc (DWORD fourcc) {
|
|||
}
|
||||
|
||||
/* DMUS_VERSION struct to string conversion for debug messages */
|
||||
static const char *debugstr_dmversion (const DMUS_VERSION *version) {
|
||||
if (!version) return "'null'";
|
||||
return wine_dbg_sprintf ("\'%i,%i,%i,%i\'",
|
||||
(int)((version->dwVersionMS & 0xFFFF0000) >> 8), (int)(version->dwVersionMS & 0x0000FFFF),
|
||||
(int)((version->dwVersionLS & 0xFFFF0000) >> 8), (int)(version->dwVersionLS & 0x0000FFFF));
|
||||
static const char *debugstr_dmversion(const DMUS_VERSION *version)
|
||||
{
|
||||
if (!version)
|
||||
return "'null'";
|
||||
return wine_dbg_sprintf("'%hu,%hu,%hu,%hu'",
|
||||
HIWORD(version->dwVersionMS), LOWORD(version->dwVersionMS),
|
||||
HIWORD(version->dwVersionLS), LOWORD(version->dwVersionLS));
|
||||
}
|
||||
|
||||
/* returns name of given GUID */
|
||||
|
|
Loading…
Reference in a new issue