mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
[Coverity] Fix mismatched size (bytes vs. wchars)
This commit is contained in:
@@ -398,8 +398,10 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst,
|
||||
cmdline += L"/renderdocui.exe\" --updatedone";
|
||||
|
||||
wchar_t *paramsAlloc = new wchar_t[512];
|
||||
|
||||
ZeroMemory(paramsAlloc, sizeof(wchar_t)*512);
|
||||
|
||||
wcscpy_s(paramsAlloc, 511, cmdline.c_str());
|
||||
wcscpy_s(paramsAlloc, sizeof(wchar_t)*511, cmdline.c_str());
|
||||
|
||||
PROCESS_INFORMATION pi;
|
||||
STARTUPINFOW si;
|
||||
|
||||
Reference in New Issue
Block a user