mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user