winmm: A NULL CALLBACK_FUNCTION is acceptable since w2k.

This commit is contained in:
Jörg Höhle 2010-03-09 22:07:22 +01:00 committed by Alexandre Julliard
parent e3869300b9
commit a311dff763
1 changed files with 2 additions and 3 deletions

View File

@ -543,8 +543,6 @@ BOOL WINAPI DriverCallback(DWORD_PTR dwCallBack, DWORD 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", uFlags, dwCallBack);
break;
case DCB_WINDOW:
TRACE("Window(%04lX) handle=%p!\n", dwCallBack, hDev);
@ -556,6 +554,7 @@ BOOL WINAPI DriverCallback(DWORD_PTR dwCallBack, DWORD uFlags, HDRVR hDev,
break;
case DCB_FUNCTION:
TRACE("Function (32 bit) !\n");
if (dwCallBack)
((LPDRVCALLBACK)dwCallBack)(hDev, wMsg, dwUser, dwParam1, dwParam2);
break;
case DCB_EVENT: