diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2011-05-24 21:53:02 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2011-05-24 21:53:46 +0400 |
commit | 352b815f147cc161003076ba9195588749ba0f32 (patch) | |
tree | 1bd52c2174561c9a15ba9d643c7ec1fc6ee9d4e8 /common | |
parent | b6a2f54bcde0b2cdeeeeeb79fd1db2cbc9f5d7ae (diff) |
Flush Log files before closing.
Diffstat (limited to 'common')
-rw-r--r-- | common/DSUtilLite/DShowUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/DSUtilLite/DShowUtil.cpp b/common/DSUtilLite/DShowUtil.cpp index 646d95a9..69ffa65e 100644 --- a/common/DSUtilLite/DShowUtil.cpp +++ b/common/DSUtilLite/DShowUtil.cpp @@ -87,6 +87,7 @@ void DbgSetLogFileDesktop(LPCTSTR szFile) void DbgCloseLogFile() { if (m_hOutput != INVALID_HANDLE_VALUE) { + FlushFileBuffers (m_hOutput); CloseHandle (m_hOutput); m_hOutput = INVALID_HANDLE_VALUE; } |