From 57d3323eb772ac02941e21048c7461bee2c4b9cb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 7 Oct 2022 11:45:23 +0300 Subject: suddenly: network logs are not erased in the beginning, as it should be --- src/mir_core/src/logger.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/mir_core/src/logger.cpp b/src/mir_core/src/logger.cpp index 0dccb53f9f..24240d691d 100644 --- a/src/mir_core/src/logger.cpp +++ b/src/mir_core/src/logger.cpp @@ -101,6 +101,7 @@ MIR_CORE_DLL(HANDLE) mir_createLog(const char* pszName, const wchar_t *ptszDescr } CreatePathToFileW(ptszFile); + _wremove(ptszFile); arLoggers.insert(result); return result; } -- cgit v1.2.3