From 7bc1b745e3667f6e58f4582466cc5042a30d154d Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 5 Dec 2009 20:45:07 +0000 Subject: [PATCH] - [Win32k] Return invalid index. svn path=/trunk/; revision=44423 --- reactos/subsystems/win32/win32k/ntuser/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index 896a9f903ac..641db2cf99e 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -3854,7 +3854,7 @@ co_UserSetWindowLong(HWND hWnd, DWORD Index, LONG NewValue, BOOL Ansi) { if ((Index + sizeof(LONG)) > Wnd->cbwndExtra) { - SetLastWin32Error(ERROR_INVALID_PARAMETER); + SetLastWin32Error(ERROR_INVALID_INDEX); return( 0); }