mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
CallWindowProc returns 0 if lpPrevWndFunc is NULL
svn path=/trunk/; revision=28285
This commit is contained in:
parent
e6980dd58b
commit
6dc469edbb
1 changed files with 8 additions and 3 deletions
|
@ -1235,9 +1235,11 @@ CallWindowProcA(WNDPROC lpPrevWndFunc,
|
||||||
{
|
{
|
||||||
WNDPROC_INFO wpInfo;
|
WNDPROC_INFO wpInfo;
|
||||||
|
|
||||||
/* FIXME - can the first parameter be NULL? */
|
|
||||||
if (lpPrevWndFunc == NULL)
|
if (lpPrevWndFunc == NULL)
|
||||||
lpPrevWndFunc = (WNDPROC)NtUserGetWindowLong(hWnd, GWLP_WNDPROC, TRUE);
|
{
|
||||||
|
WARN("CallWindowProcA: lpPrevWndFunc == NULL!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!IsCallProcHandle(lpPrevWndFunc))
|
if (!IsCallProcHandle(lpPrevWndFunc))
|
||||||
return IntCallWindowProcA(TRUE, lpPrevWndFunc, hWnd, Msg, wParam, lParam);
|
return IntCallWindowProcA(TRUE, lpPrevWndFunc, hWnd, Msg, wParam, lParam);
|
||||||
|
@ -1270,7 +1272,10 @@ CallWindowProcW(WNDPROC lpPrevWndFunc,
|
||||||
|
|
||||||
/* FIXME - can the first parameter be NULL? */
|
/* FIXME - can the first parameter be NULL? */
|
||||||
if (lpPrevWndFunc == NULL)
|
if (lpPrevWndFunc == NULL)
|
||||||
lpPrevWndFunc = (WNDPROC)NtUserGetWindowLong(hWnd, GWLP_WNDPROC, FALSE);
|
{
|
||||||
|
WARN("CallWindowProcA: lpPrevWndFunc == NULL!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!IsCallProcHandle(lpPrevWndFunc))
|
if (!IsCallProcHandle(lpPrevWndFunc))
|
||||||
return IntCallWindowProcW(FALSE, lpPrevWndFunc, hWnd, Msg, wParam, lParam);
|
return IntCallWindowProcW(FALSE, lpPrevWndFunc, hWnd, Msg, wParam, lParam);
|
||||||
|
|
Loading…
Reference in a new issue