mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 10:28:08 +00:00
[idd] debug: add debug defines and make use of them
This commit is contained in:
@@ -59,7 +59,7 @@ void CIndirectMonitorContext::AssignSwapChain(IDDCX_SWAPCHAIN swapChain, LUID re
|
||||
if (!m_devContext->SetupLGMP(alignSize))
|
||||
{
|
||||
WdfObjectDelete(swapChain);
|
||||
DBGPRINT("SetupLGMP failed");
|
||||
DEBUG_ERROR("SetupLGMP failed");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ void CIndirectMonitorContext::AssignSwapChain(IDDCX_SWAPCHAIN swapChain, LUID re
|
||||
if (!NT_SUCCESS(status))
|
||||
{
|
||||
WdfObjectDelete(swapChain);
|
||||
DBGPRINT("IddCxMonitorSetupHardwareCursor Failed: %08x", status);
|
||||
DEBUG_ERROR_HR(status, "IddCxMonitorSetupHardwareCursor Failed");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ void CIndirectMonitorContext::CursorThread()
|
||||
else if (waitResult != WAIT_OBJECT_0)
|
||||
{
|
||||
hr = HRESULT_FROM_WIN32(waitResult);
|
||||
DBGPRINT("WaitForMultipleObjects: %08", hr);
|
||||
DEBUG_ERROR_HR(hr, "WaitForMultipleObjects");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ void CIndirectMonitorContext::CursorThread()
|
||||
NTSTATUS status = IddCxMonitorQueryHardwareCursor(m_monitor, &in, &out);
|
||||
if (FAILED(status))
|
||||
{
|
||||
DBGPRINT("IddCxMonitorQueryHardwareCursor failed: %08x", status);
|
||||
DEBUG_ERROR_HR(status, "IddCxMonitorQueryHardwareCursor failed");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user