Author: dchapyshev
Date: Sat Sep 10 22:30:53 2016
New Revision: 72649
URL:
http://svn.reactos.org/svn/reactos?rev=72649&view=rev
Log:
[NtUser] Unnecessary check is removed and correct value of an error code is returned
* Fixes 2 tests for win32knt_apitest:NtUserEnumDisplaySettings
Modified:
trunk/reactos/win32ss/user/ntuser/display.c
Modified: trunk/reactos/win32ss/user/ntuser/display.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/displa…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/display.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/display.c [iso-8859-1] Sat Sep 10 22:30:53 2016
@@ -477,9 +477,6 @@
return STATUS_UNSUCCESSFUL;
}
- if (iModeNum >= pGraphicsDevice->cDevModes)
- return STATUS_NO_MORE_ENTRIES;
-
iFoundMode = 0;
for (i = 0; i < pGraphicsDevice->cDevModes; i++)
{
@@ -504,7 +501,7 @@
}
/* Nothing was found */
- return STATUS_INVALID_PARAMETER;
+ return STATUS_INVALID_PARAMETER_2;
}
NTSTATUS