From d13e1cf2202a9109102ec5643a3d87b87c21e98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sun, 14 Mar 2004 11:27:33 +0000 Subject: [PATCH] Match error tested against to the actual error returned by NtUserGetWindowLong svn path=/trunk/; revision=8705 --- reactos/lib/user32/windows/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/windows/window.c b/reactos/lib/user32/windows/window.c index 04d63eb9595..604ce18487a 100644 --- a/reactos/lib/user32/windows/window.c +++ b/reactos/lib/user32/windows/window.c @@ -1,4 +1,4 @@ -/* $Id: window.c,v 1.101 2004/03/07 20:38:17 navaraf Exp $ +/* $Id: window.c,v 1.102 2004/03/14 11:27:33 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -1046,7 +1046,7 @@ BOOL STDCALL IsWindow(HWND hWnd) { DWORD WndProc = NtUserGetWindowLong(hWnd, GWL_WNDPROC, FALSE); - return (0 != WndProc || ERROR_INVALID_HANDLE != GetLastError()); + return (0 != WndProc || ERROR_INVALID_WINDOW_HANDLE != GetLastError()); }