diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 13:02:21 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2024-03-03 13:02:21 -0500 |
commit | 947a8c1a4da105a25b131758dbbf9e40c6d3dcb3 (patch) | |
tree | aac2bd4b9bf3264d3d2f75a1f7e45632e02db50e /src/lpm.c | |
parent | 6c45ce30556423d4763a293ff11fee242e3716be (diff) | |
download | lite-xl-plugin-manager-947a8c1a4da105a25b131758dbbf9e40c6d3dcb3.tar.gz lite-xl-plugin-manager-947a8c1a4da105a25b131758dbbf9e40c6d3dcb3.zip |
Fixed error with allocating buffer.
Diffstat (limited to 'src/lpm.c')
-rw-r--r-- | src/lpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -94,7 +94,7 @@ static const int luaL_win32_error(lua_State* L, DWORD error_id, const char* mess lua_pushvfstring(L, message, va); va_end(va); wchar_t message_buffer[2048]; - size_t size = FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, + size_t size = FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, error_id, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), message_buffer, 2048, NULL); lua_pushliteral(L, ": "); lua_toutf8(L, message_buffer); |