From: James Tabor Date: Sat, 5 Dec 2009 20:45:07 +0000 (+0000) Subject: - [Win32k] Return invalid index. X-Git-Tag: backups/aicom-network-stable@46924~398 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=7bc1b745e3667f6e58f4582466cc5042a30d154d - [Win32k] Return invalid index. svn path=/trunk/; revision=44423 --- 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); }