Added handler.

Added WM_QUERYENDSESSION message handler for correct closing log-file.
This commit is contained in:
2022-02-25 14:45:08 +03:00
parent 3cd3faea01
commit 28de2585a8

View File

@@ -290,6 +290,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
}
break;
case WM_QUERYENDSESSION:
{
diag_log(L"Recieved WM_QUERYENDSESSION message, lParam =", lParam);
CloseLogFile();
return TRUE;
break;
}
case WM_DESTROY:
{
PostQuitMessage(0);