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:
Nikolay Sivov 2021-09-15 14:15:49 +03:00 committed by Alexandre Julliard
parent 37bc7518b8
commit 1d46e601ff
1 changed files with 1 additions and 1 deletions

View File

@ -1020,7 +1020,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH StartServiceA( SC_HANDLE service, DWORD argc, cons
BOOL r;
if (argc)
argvW = heap_alloc( argc * sizeof(WCHAR) );
argvW = heap_alloc( argc * sizeof(*argvW) );
for (i = 0; i < argc; i++)
argvW[i] = heap_strdupAtoW( argv[i] );