From 9fbf1fb3763bc2560827ab3bc0c105000efd2faa Mon Sep 17 00:00:00 2001 From: Corey C Date: Wed, 17 Oct 2012 15:31:36 -0400 Subject: [PATCH] wfreerdp-server: fixed parenthesis error and added more debug output --- server/Windows/wf_dxgi.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/Windows/wf_dxgi.c b/server/Windows/wf_dxgi.c index 8ab5eed..b2662a2 100644 --- a/server/Windows/wf_dxgi.c +++ b/server/Windows/wf_dxgi.c @@ -236,7 +236,7 @@ int wf_dxgi_cleanup(wfInfo* wfi) int wf_dxgi_nextFrame(wfInfo* wfi, UINT timeout) { - HRESULT status; + HRESULT status = 0; UINT i = 0; UINT DataBufferSize = 0; BYTE* DataBuffer = NULL; @@ -262,7 +262,11 @@ int wf_dxgi_nextFrame(wfInfo* wfi, UINT timeout) if (FAILED(status)) { - _tprintf(_T("Failed to acquire next frame with status=%d\n", status)); + _tprintf(_T("Failed to acquire next frame with status=%#X\n"), status); + _tprintf(_T("\tAccumulated Frames: %d\n\tRects: %d\n\tBuffSize: %d\n"), + FrameInfo.AccumulatedFrames, + FrameInfo.RectsCoalesced, + FrameInfo.TotalMetadataBufferSize); status = gOutputDuplication->lpVtbl->ReleaseFrame(gOutputDuplication); -- 2.7.4