dswave: 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:
Michael Stefaniuc 2019-03-24 14:26:51 +01:00 committed by Alexandre Julliard
parent 25c41c4eea
commit f43a0ef304
1 changed files with 7 additions and 5 deletions

View File

@ -193,11 +193,13 @@ const char *debugstr_fourcc (DWORD fourcc) {
} }
/* DMUS_VERSION struct to string conversion for debug messages */ /* DMUS_VERSION struct to string conversion for debug messages */
static const char *debugstr_dmversion (const DMUS_VERSION *version) { static const char *debugstr_dmversion(const DMUS_VERSION *version)
if (!version) return "'null'"; {
return wine_dbg_sprintf ("\'%i,%i,%i,%i\'", if (!version)
(int)((version->dwVersionMS & 0xFFFF0000) >> 8), (int)(version->dwVersionMS & 0x0000FFFF), return "'null'";
(int)((version->dwVersionLS & 0xFFFF0000) >> 8), (int)(version->dwVersionLS & 0x0000FFFF)); 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 */ /* returns name of given GUID */