mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 02:18:12 +00:00
[idd] driver: re-plug the monitor if the heap test failed
This commit is contained in:
@@ -188,18 +188,18 @@ void CIndirectDeviceContext::FinishInit(UINT connectorIndex)
|
||||
}
|
||||
}
|
||||
|
||||
void CIndirectDeviceContext::ReplugMonitor(UINT connectorIndex)
|
||||
void CIndirectDeviceContext::ReplugMonitor()
|
||||
{
|
||||
if (m_monitor == WDF_NO_HANDLE)
|
||||
{
|
||||
FinishInit(connectorIndex);
|
||||
FinishInit(0);
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_replugMonitor)
|
||||
return;
|
||||
|
||||
DEBUG_TRACE("ReplugMonitor %u", connectorIndex);
|
||||
DEBUG_TRACE("ReplugMonitor");
|
||||
m_replugMonitor = true;
|
||||
NTSTATUS status = IddCxMonitorDeparture(m_monitor);
|
||||
if (!NT_SUCCESS(status))
|
||||
@@ -529,7 +529,7 @@ void CIndirectDeviceContext::LGMPTimer()
|
||||
m.refresh = 120;
|
||||
m.preferred = true;
|
||||
m_displayModes.push_back(m);
|
||||
ReplugMonitor(0);
|
||||
ReplugMonitor();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user