stevedonovan / winapi

Minimal but useful Lua bindings to the Windows API
http://stevedonovan.github.com/winapi/api.html
Other
192 stars 40 forks source link

increased buffer size for wchar string translation #24

Open Fuzzlix opened 8 years ago

Fuzzlix commented 8 years ago

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