- [Win32k] Return invalid index.
authorJames Tabor <james.tabor@reactos.org>
Sat, 5 Dec 2009 20:45:07 +0000 (20:45 +0000)
committerJames Tabor <james.tabor@reactos.org>
Sat, 5 Dec 2009 20:45:07 +0000 (20:45 +0000)
svn path=/trunk/; revision=44423

reactos/subsystems/win32/win32k/ntuser/window.c

index 896a9f9..641db2c 100644 (file)
@@ -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);
       }