From bcc194a1c570cc68012debf4cca3f0466b8939dc Mon Sep 17 00:00:00 2001 From: aemony Date: Sun, 9 Jun 2024 21:42:19 +0200 Subject: [PATCH] Clean system messages fully --- src/utility/utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/utility.cpp b/src/utility/utility.cpp index 5664a21..b026046 100644 --- a/src/utility/utility.cpp +++ b/src/utility/utility.cpp @@ -254,7 +254,7 @@ SKIF_Util_GetErrorAsWStr (DWORD error, HMODULE module) std::wstring message (messageBuffer, size); LocalFree (messageBuffer); - message.erase (std::remove (message.begin(), message.end(), '\n'), message.end()); + SKIF_Util_CleanStringW (message); message = L"[" + std::to_wstring(error) + L"] " + message;