Commit 1d46e601 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

sechost: Fix argument pointers array allocation size (Coverity).

parent 37bc7518
...@@ -1020,7 +1020,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH StartServiceA( SC_HANDLE service, DWORD argc, cons ...@@ -1020,7 +1020,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH StartServiceA( SC_HANDLE service, DWORD argc, cons
BOOL r; BOOL r;
if (argc) if (argc)
argvW = heap_alloc( argc * sizeof(WCHAR) ); argvW = heap_alloc( argc * sizeof(*argvW) );
for (i = 0; i < argc; i++) for (i = 0; i < argc; i++)
argvW[i] = heap_strdupAtoW( argv[i] ); argvW[i] = heap_strdupAtoW( argv[i] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment