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) { switch (uFlags & DCB_TYPEMASK) {
case DCB_NULL: case DCB_NULL:
TRACE("Null !\n"); TRACE("Null !\n");
if (dwCallBack)
WARN("uFlags=%04X has null DCB value, but dwCallBack=%08lX is not null !\n", uFlags, dwCallBack);
break; break;
case DCB_WINDOW: case DCB_WINDOW:
TRACE("Window(%04lX) handle=%p!\n", dwCallBack, hDev); TRACE("Window(%04lX) handle=%p!\n", dwCallBack, hDev);
@ -556,6 +554,7 @@ BOOL WINAPI DriverCallback(DWORD_PTR dwCallBack, DWORD uFlags, HDRVR hDev,
break; break;
case DCB_FUNCTION: case DCB_FUNCTION:
TRACE("Function (32 bit) !\n"); TRACE("Function (32 bit) !\n");
if (dwCallBack)
((LPDRVCALLBACK)dwCallBack)(hDev, wMsg, dwUser, dwParam1, dwParam2); ((LPDRVCALLBACK)dwCallBack)(hDev, wMsg, dwUser, dwParam1, dwParam2);
break; break;
case DCB_EVENT: case DCB_EVENT: