mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Fix incorrect allocation not allowing space for pathname
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user