From b467afc2dde3eee9b5cbb6173f762bef7baa0d0d Mon Sep 17 00:00:00 2001 From: Daniel Sunnerberg Date: Sat, 23 May 2015 01:07:46 +0200 Subject: [PATCH] Flushes output when printing device information. This allows other programs to capture the output. --- EndPointController/EndPointController.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/EndPointController/EndPointController.cpp b/EndPointController/EndPointController.cpp index 50a0946..fda0b97 100644 --- a/EndPointController/EndPointController.cpp +++ b/EndPointController/EndPointController.cpp @@ -226,6 +226,7 @@ HRESULT printDeviceInfo(IMMDevice* pDevice, int index, LPCWSTR outFormat, LPWSTR strID ); wprintf_s(_T("\n")); + fflush(stdout); } pStore->Release();