Skip to content

Commit

Permalink
Clean system messages fully
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Jun 9, 2024
1 parent 546615f commit bcc194a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit bcc194a

Please sign in to comment.