forked from Public-Mirror/Textractor
no need for wchar there
This commit is contained in:
parent
4e4cf00884
commit
7ec7253ec3
@ -28,11 +28,11 @@ constexpr auto EXTEN_SAVE_FILE = u8"Extensions.txt";
|
|||||||
// Functions
|
// Functions
|
||||||
|
|
||||||
template <typename... Ts>
|
template <typename... Ts>
|
||||||
inline void FORMAT_MESSAGE(const wchar_t* format, Ts ...args)
|
inline void FORMAT_MESSAGE(const char* format, Ts ...args)
|
||||||
{
|
{
|
||||||
wchar_t buffer[250] = {};
|
char buffer[250] = {};
|
||||||
swprintf_s<250>(buffer, format, args...);
|
sprintf_s<250>(buffer, format, args...);
|
||||||
MessageBoxW(NULL, buffer, L"Textractor Message", MB_OK);
|
MessageBoxA(NULL, buffer, "Textractor Message", MB_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
// EOF
|
// EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user