Skip to content

Commit 2915d16

Browse files
committed
[WIN32SS:USER] Do not write error message at end of enumeration in UserEnumDisplayDevices()
1 parent cd83054 commit 2915d16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

win32ss/user/ntuser/display.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ UserEnumDisplayDevices(
254254
if (!pGraphicsDevice)
255255
{
256256
/* No device found */
257-
ERR("No GRAPHICS_DEVICE found for '%wZ', iDevNum %lu\n", pustrDevice, iDevNum);
257+
if (iDevNum == 0)
258+
ERR("No GRAPHICS_DEVICE found for '%wZ', iDevNum %lu\n", pustrDevice, iDevNum);
259+
else
260+
TRACE("No GRAPHICS_DEVICE found for '%wZ', iDevNum %lu\n", pustrDevice, iDevNum);
258261
return STATUS_UNSUCCESSFUL;
259262
}
260263

0 commit comments

Comments
 (0)