[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.
This commit is contained in:
Geoffrey McRae
2025-08-30 13:05:28 +00:00
parent e1a585ad6f
commit 403bf87d6d

View File

@@ -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;
}