dmscript: 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:48 +01:00 committed by Alexandre Julliard
parent a938cbf5dd
commit 2eac950ab6
1 changed files with 7 additions and 5 deletions

View File

@ -254,11 +254,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 */