mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-09 17:14:47 -06:00
Fix windows build
This commit is contained in:
parent
60d15bcf28
commit
e6e6e1631e
@ -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
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user