From 6dc469edbb17f9d68a77f75dc31dbfc00d56aa02 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 11 Aug 2007 11:55:17 +0000 Subject: [PATCH] CallWindowProc returns 0 if lpPrevWndFunc is NULL svn path=/trunk/; revision=28285 --- reactos/dll/win32/user32/windows/message.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/user32/windows/message.c b/reactos/dll/win32/user32/windows/message.c index 23a204a39b2..6a7970f346d 100644 --- a/reactos/dll/win32/user32/windows/message.c +++ b/reactos/dll/win32/user32/windows/message.c @@ -1235,9 +1235,11 @@ CallWindowProcA(WNDPROC lpPrevWndFunc, { WNDPROC_INFO wpInfo; - /* FIXME - can the first parameter be NULL? */ if (lpPrevWndFunc == NULL) - lpPrevWndFunc = (WNDPROC)NtUserGetWindowLong(hWnd, GWLP_WNDPROC, TRUE); + { + WARN("CallWindowProcA: lpPrevWndFunc == NULL!\n"); + return 0; + } if (!IsCallProcHandle(lpPrevWndFunc)) return IntCallWindowProcA(TRUE, lpPrevWndFunc, hWnd, Msg, wParam, lParam); @@ -1270,7 +1272,10 @@ CallWindowProcW(WNDPROC lpPrevWndFunc, /* FIXME - can the first parameter be NULL? */ if (lpPrevWndFunc == NULL) - lpPrevWndFunc = (WNDPROC)NtUserGetWindowLong(hWnd, GWLP_WNDPROC, FALSE); + { + WARN("CallWindowProcA: lpPrevWndFunc == NULL!\n"); + return 0; + } if (!IsCallProcHandle(lpPrevWndFunc)) return IntCallWindowProcW(FALSE, lpPrevWndFunc, hWnd, Msg, wParam, lParam);