aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-03-03 13:02:21 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-03-03 13:02:21 -0500
commit947a8c1a4da105a25b131758dbbf9e40c6d3dcb3 (patch)
treeaac2bd4b9bf3264d3d2f75a1f7e45632e02db50e /src/lpm.c
parent6c45ce30556423d4763a293ff11fee242e3716be (diff)
downloadlite-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 478897b..f9b8d58 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -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);