From cfe418834c2f4dbf650e0795bbe2c6fca649cfa2 Mon Sep 17 00:00:00 2001 From: Ulrich Schmidt Date: Thu, 21 Jul 2016 08:39:42 +0200 Subject: [PATCH] increased buffer size for wchar string translation This buffer needs to hold 32768 wchars including \000 at the end. This lenght is required to convert lua strings to wchar strings for CreateProcess() parameters. see: https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx --- winapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winapi.c b/winapi.c index dadae2e..d4b198d 100644 --- a/winapi.c +++ b/winapi.c @@ -24,7 +24,7 @@ A useful set of Windows API functions. #include -#define WBUFF 2048 +#define WBUFF (32768 * 2) #define MAX_SHOW 100 #define THREAD_STACK_SIZE (1024 * 1024) #define MAX_PROCESSES 1024