From 608c551fa04d4c039fe326242b481932aa496dce Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Sat, 20 Sep 2008 13:47:33 +0000 Subject: [PATCH] - Implement RealChildWindowFromPoint (based on wine) - Add checking params for BeginDeferWindowPos svn path=/trunk/; revision=36350 --- reactos/dll/win32/user32/windows/window.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/user32/windows/window.c b/reactos/dll/win32/user32/windows/window.c index 57f44e37f6e..bf2d0b337d9 100644 --- a/reactos/dll/win32/user32/windows/window.c +++ b/reactos/dll/win32/user32/windows/window.c @@ -66,6 +66,11 @@ AllowSetForegroundWindow(DWORD dwProcessId) HDWP STDCALL BeginDeferWindowPos(int nNumWindows) { + if (nNumWindows < 0) + { + SetLastError(ERROR_INVALID_PARAMETER); + return 0; + } #if 0 UNIMPLEMENTED; return (HDWP)0; @@ -1561,14 +1566,13 @@ OpenIcon(HWND hWnd) /* - * @unimplemented + * @implemented */ HWND STDCALL RealChildWindowFromPoint(HWND hwndParent, POINT ptParentClientCoords) { - UNIMPLEMENTED; - return (HWND)0; + return ChildWindowFromPointEx(hwndParent, ptParentClientCoords, CWP_SKIPTRANSPARENT); } /*