Skip to content

Commit 50ce1f1

Browse files
author
Dmitry Chapyshev
committed
[NtUser] Unnecessary check is removed and correct value of an error code is returned
* Fixes 2 tests for win32knt_apitest:NtUserEnumDisplaySettings svn path=/trunk/; revision=72649
1 parent 0bbd5c5 commit 50ce1f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

reactos/win32ss/user/ntuser/display.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,6 @@ UserEnumDisplaySettings(
477477
return STATUS_UNSUCCESSFUL;
478478
}
479479

480-
if (iModeNum >= pGraphicsDevice->cDevModes)
481-
return STATUS_NO_MORE_ENTRIES;
482-
483480
iFoundMode = 0;
484481
for (i = 0; i < pGraphicsDevice->cDevModes; i++)
485482
{
@@ -504,7 +501,7 @@ UserEnumDisplaySettings(
504501
}
505502

506503
/* Nothing was found */
507-
return STATUS_INVALID_PARAMETER;
504+
return STATUS_INVALID_PARAMETER_2;
508505
}
509506

510507
NTSTATUS

0 commit comments

Comments
 (0)