Added a check for a non-null WndProc into IntCallWndProcA/W. Instead of bugchecking, it shows a DPRINT1 now to inform about a bug.

As a side effect, mIRC now works in ReactOS.

svn path=/trunk/; revision=23046
This commit is contained in:
Aleksey Bragin 2006-07-13 20:47:59 +00:00
parent d7e7bd087e
commit 9d2f75b905

View file

@ -1141,6 +1141,12 @@ IntCallWindowProcW(BOOL IsAnsiProc,
MSG UnicodeMsg;
LRESULT Result;
if (WndProc == NULL)
{
DPRINT1("IntCallWindowsProcW() called with WndProc = NULL!\n");
return FALSE;
}
if (IsAnsiProc)
{
UnicodeMsg.hwnd = hWnd;
@ -1177,6 +1183,12 @@ IntCallWindowProcA(BOOL IsAnsiProc,
MSG UnicodeMsg;
LRESULT Result;
if (WndProc == NULL)
{
DPRINT1("IntCallWindowsProcA() called with WndProc = NULL!\n");
return FALSE;
}
if (IsAnsiProc)
{
return WndProc(hWnd, Msg, wParam, lParam);