Fix incorrect allocation not allowing space for pathname

This commit is contained in:
baldurk
2018-06-25 16:12:31 +01:00
parent 34e174179a
commit 0604d037e6
+1 -1
View File
@@ -27,7 +27,7 @@
int WINAPI wWinMain(_In_ HINSTANCE hInst, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine,
_In_ int nShowCmd)
{
size_t len = wcslen(lpCmdLine) + 64;
size_t len = 512 + wcslen(lpCmdLine) + 64;
wchar_t *paramsAlloc = new wchar_t[len + 1];