mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +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:
parent
d7e7bd087e
commit
9d2f75b905
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue