Commit 0497aa64 authored by Bradley Baetz's avatar Bradley Baetz Committed by Alexandre Julliard

The wavemap driver wasn't passing the callback type to the

DriverCallback routine correctly.
parent 05d006be
......@@ -620,6 +620,8 @@ BOOL WINAPI DriverCallback(DWORD dwCallBack, UINT uFlags, HDRVR hDev,
switch (uFlags & DCB_TYPEMASK) {
case DCB_NULL:
TRACE("Null !\n");
if (dwCallBack)
WARN("uFlags=%04X has null DCB value, but dwCallBack=%08lX is not null !\n");
break;
case DCB_WINDOW:
TRACE("Window(%04lX) handle=%04X!\n", dwCallBack, hDev);
......
......@@ -71,7 +71,7 @@ static void CALLBACK WAVEMAP_DstCallback(HDRVR hDev, UINT uMsg, DWORD dwInstance
ERR("Unknown msg %u\n", uMsg);
}
DriverCallback(wom->dwCallback, wom->dwFlags, hDev, uMsg,
DriverCallback(wom->dwCallback, HIWORD(wom->dwFlags), hDev, uMsg,
wom->dwClientInstance, dwParam1, dwParam2);
}
......
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