projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bbd5c5
)
[NtUser] Unnecessary check is removed and correct value of an error code is returned
author
Dmitry Chapyshev
<dmitry@reactos.org>
Sat, 10 Sep 2016 22:30:53 +0000
(22:30 +0000)
committer
Dmitry Chapyshev
<dmitry@reactos.org>
Sat, 10 Sep 2016 22:30:53 +0000
(22:30 +0000)
* Fixes 2 tests for win32knt_apitest:NtUserEnumDisplaySettings
svn path=/trunk/; revision=72649
reactos/win32ss/user/ntuser/display.c
patch
|
blob
|
history
diff --git
a/reactos/win32ss/user/ntuser/display.c
b/reactos/win32ss/user/ntuser/display.c
index
85781e4
..
e0c32cd
100644
(file)
--- a/
reactos/win32ss/user/ntuser/display.c
+++ b/
reactos/win32ss/user/ntuser/display.c
@@
-477,9
+477,6
@@
UserEnumDisplaySettings(
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
@@
UserEnumDisplaySettings(
}
/* Nothing was found */
- return STATUS_INVALID_PARAMETER;
+ return STATUS_INVALID_PARAMETER
_2
;
}
NTSTATUS