mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 13:40:21 +00:00
dlerror Win compat: use FormatMessageA explicitly
With current flags, -DUNICODE is defined, thus compiling preview.cpp using wide function (FormatMessageW) implicitly, thus use FormatMessageA explicitly.
This commit is contained in:
@@ -55,7 +55,7 @@ static char *dlerror(void) ATTRIBUTE(unused);
|
||||
|
||||
static char *dlerror(void) {
|
||||
thread_local static char buf[1024] = "(unknown)";
|
||||
FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, // flags
|
||||
FormatMessageA (FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, // flags
|
||||
NULL, // lpsource
|
||||
GetLastError(), // message id
|
||||
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), // languageid
|
||||
|
||||
Reference in New Issue
Block a user