Fix windows build

This commit is contained in:
SSimco 2025-07-08 20:52:17 +03:00
parent 60d15bcf28
commit e6e6e1631e
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,10 @@
#include <wx/clipbrd.h>
#if BOOST_OS_WINDOWS
#include <ole2.h>
#endif
#if BOOST_OS_LINUX || BOOST_OS_MACOS
#include "resource/embedded/resources.h"
#endif

View File

@ -60,7 +60,7 @@ std::string GetSystemErrorMessage(DWORD error_code)
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, nullptr, error_code, 0, (LPSTR)&lpMsgBuf, 0, nullptr);
if (lpMsgBuf)
{
std::string str = fmt::format("{}: {}", _tr("Error") lpMsgBuf); // TRANSLATE
std::string str = fmt::format("{}: {}", _tr("Error"), lpMsgBuf); // TRANSLATE
LocalFree(lpMsgBuf);
return str;
}