- [Win32k] Return invalid index.
[reactos.git] / 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);
       }