advapi32: Always pass a valid argv pointer to a service even if there are no arguments.
This commit is contained in:
parent
a2d04673e6
commit
cd3805336e
|
@ -383,16 +383,8 @@ static DWORD WINAPI service_thread(LPVOID arg)
|
|||
len += strlenW(&str[len]) + 1;
|
||||
argc++;
|
||||
}
|
||||
len++;
|
||||
|
||||
if (!argc)
|
||||
{
|
||||
if (info->unicode)
|
||||
info->proc.w(0, NULL);
|
||||
else
|
||||
info->proc.a(0, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (info->unicode)
|
||||
{
|
||||
LPWSTR *argv, p;
|
||||
|
|
Loading…
Reference in New Issue