sechost: Fix argument pointers array allocation size (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
37bc7518b8
commit
1d46e601ff
|
@ -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] );
|
||||||
|
|
Loading…
Reference in New Issue