- [Win32k] Missed this one for rev 44423. Return invalid index not invalid parameter...
authorJames Tabor <james.tabor@reactos.org>
Sun, 6 Dec 2009 22:41:53 +0000 (22:41 +0000)
committerJames Tabor <james.tabor@reactos.org>
Sun, 6 Dec 2009 22:41:53 +0000 (22:41 +0000)
svn path=/trunk/; revision=44444

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

index e561b70..61a76f8 100644 (file)
@@ -3944,7 +3944,7 @@ co_UserSetWindowLong(HWND hWnd, DWORD Index, LONG NewValue, BOOL Ansi)
 
          default:
             DPRINT1("NtUserSetWindowLong(): Unsupported index %d\n", Index);
-            SetLastWin32Error(ERROR_INVALID_PARAMETER);
+            SetLastWin32Error(ERROR_INVALID_INDEX);
             OldValue = 0;
             break;
       }