From 7ec7253ec39d7b3725e3206d1efa0616ae012df9 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 20 Dec 2018 11:02:22 -0500 Subject: [PATCH] no need for wchar there --- include/defs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/defs.h b/include/defs.h index 7372951..b756678 100644 --- a/include/defs.h +++ b/include/defs.h @@ -28,11 +28,11 @@ constexpr auto EXTEN_SAVE_FILE = u8"Extensions.txt"; // Functions template -inline void FORMAT_MESSAGE(const wchar_t* format, Ts ...args) +inline void FORMAT_MESSAGE(const char* format, Ts ...args) { - wchar_t buffer[250] = {}; - swprintf_s<250>(buffer, format, args...); - MessageBoxW(NULL, buffer, L"Textractor Message", MB_OK); + char buffer[250] = {}; + sprintf_s<250>(buffer, format, args...); + MessageBoxA(NULL, buffer, "Textractor Message", MB_OK); } // EOF