mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 09:58:10 +00:00
[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:
@@ -333,6 +333,10 @@ void CSwapChainProcessor::CursorThread()
|
|||||||
NTSTATUS status = IddCxMonitorQueryHardwareCursor(m_monitor, &in, &out);
|
NTSTATUS status = IddCxMonitorQueryHardwareCursor(m_monitor, &in, &out);
|
||||||
if (FAILED(status))
|
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);
|
DEBUG_ERROR("IddCxMonitorQueryHardwareCursor failed (0x%08x)", status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user