From 7a93f2f0e13d14f71f523f77ab21d7ea5193f1fd Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Thu, 23 May 2024 02:17:52 +0300 Subject: [PATCH] fix crash printer compilation for msys2 on windows --- crash_printer/win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crash_printer/win.cpp b/crash_printer/win.cpp index 67da0a7f..b9de6b85 100644 --- a/crash_printer/win.cpp +++ b/crash_printer/win.cpp @@ -104,7 +104,7 @@ static void log_exception(LPEXCEPTION_POINTERS ex_pointers) return; } - std::ofstream file(logs_filepath, std::ios::app); + std::ofstream file(std::filesystem::path(logs_filepath), std::ios::app); auto now = std::chrono::system_clock::now(); auto t_now = std::chrono::system_clock::to_time_t(now);