Commit f1760e00 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dmusic: Use HIWORD / LOWORD instead of open coding them.

parent 2eac950a
...@@ -226,11 +226,13 @@ const char *debugstr_fourcc (DWORD fourcc) { ...@@ -226,11 +226,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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment