Author: weiden
Date: Sat Aug 11 15:55:17 2007
New Revision: 28285
URL:
http://svn.reactos.org/svn/reactos?rev=28285&view=rev
Log:
CallWindowProc returns 0 if lpPrevWndFunc is NULL
Modified:
trunk/reactos/dll/win32/user32/windows/message.c
Modified: trunk/reactos/dll/win32/user32/windows/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/message.c (original)
+++ trunk/reactos/dll/win32/user32/windows/message.c Sat Aug 11 15:55:17 2007
@@ -1235,9 +1235,11 @@
{
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 @@
/* 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);