https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2915d16543a0da84b9efc…
commit 2915d16543a0da84b9efca606759639d49b479fc
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Jun 5 14:51:06 2022 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Wed Jun 8 07:58:12 2022 +0200
[WIN32SS:USER] Do not write error message at end of enumeration in
UserEnumDisplayDevices()
---
win32ss/user/ntuser/display.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/win32ss/user/ntuser/display.c b/win32ss/user/ntuser/display.c
index 5feb8077db6..8ce655fbb27 100644
--- a/win32ss/user/ntuser/display.c
+++ b/win32ss/user/ntuser/display.c
@@ -254,7 +254,10 @@ UserEnumDisplayDevices(
if (!pGraphicsDevice)
{
/* No device found */
- ERR("No GRAPHICS_DEVICE found for '%wZ', iDevNum %lu\n",
pustrDevice, iDevNum);
+ if (iDevNum == 0)
+ ERR("No GRAPHICS_DEVICE found for '%wZ', iDevNum %lu\n",
pustrDevice, iDevNum);
+ else
+ TRACE("No GRAPHICS_DEVICE found for '%wZ', iDevNum %lu\n",
pustrDevice, iDevNum);
return STATUS_UNSUCCESSFUL;
}