Win: Use MessageBoxW instead of allegro_message() in she::error_message()

This commit is contained in:
David Capello 2014-06-18 01:00:18 -03:00
parent 1ff5e82cef
commit b7dca01532

View File

@ -667,7 +667,13 @@ System* Instance()
void error_message(const char* msg)
{
#ifdef WIN32
std::wstring wmsg = base::from_utf8(msg);
std::wstring title = base::from_utf8(PACKAGE);
::MessageBoxW(NULL, wmsg.c_str(), title.c_str(), MB_OK | MB_ICONERROR);
#else
allegro_message(msg);
#endif
}
} // namespace she