From 403bf87d6dc016e4ac3ff5356804e82255bc04a5 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 30 Aug 2025 13:05:28 +0000 Subject: [PATCH] [idd] driver: ignore failure due to normal operation If the screen is blanked or removed through a user action `IddCxMonitorQueryHardwareCursor` will return with a failure. This is normal and we should not log this as an error. --- idd/LGIdd/CSwapChainProcessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/idd/LGIdd/CSwapChainProcessor.cpp b/idd/LGIdd/CSwapChainProcessor.cpp index 6036a644..e2273ef6 100644 --- a/idd/LGIdd/CSwapChainProcessor.cpp +++ b/idd/LGIdd/CSwapChainProcessor.cpp @@ -333,6 +333,10 @@ void CSwapChainProcessor::CursorThread() NTSTATUS status = IddCxMonitorQueryHardwareCursor(m_monitor, &in, &out); if (FAILED(status)) { + // this occurs if the display went away (ie, screen blanking or disabled) + if (status == ERROR_GRAPHICS_PATH_NOT_IN_TOPOLOGY) + return; + DEBUG_ERROR("IddCxMonitorQueryHardwareCursor failed (0x%08x)", status); return; }