aboutsummaryrefslogtreecommitdiff
path: root/src/threading.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threading.cpp')
-rw-r--r--src/threading.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threading.cpp b/src/threading.cpp
index efca7eb..4b27bed 100644
--- a/src/threading.cpp
+++ b/src/threading.cpp
@@ -109,11 +109,11 @@ void Win32Invoke(lua_State* const L_, std::string_view const& where_, F& f_, ARG
109 std::string_view const _funcname{ StripFuncName(where_) }; 109 std::string_view const _funcname{ StripFuncName(where_) };
110 110
111#if defined(PLATFORM_XBOX) 111#if defined(PLATFORM_XBOX)
112 luaG_pushstring(L_, "%s() failed with code %d", _funcname.data(), _rc); 112 luaW_pushstring(L_, "%s() failed with code %d", _funcname.data(), _rc);
113#else // PLATFORM_XBOX 113#else // PLATFORM_XBOX
114 char _buf[256]; 114 char _buf[256];
115 FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, _rc, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), _buf, 256, nullptr); 115 FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, _rc, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), _buf, 256, nullptr);
116 luaG_pushstring(L_, "%s() failed with code %d '%s'", _funcname.data(), _rc, _buf); 116 luaW_pushstring(L_, "%s() failed with code %d '%s'", _funcname.data(), _rc, _buf);
117#endif // PLATFORM_XBOX 117#endif // PLATFORM_XBOX
118 raise_lua_error(L_); 118 raise_lua_error(L_);
119 } 119 }