Commit cd380533 authored by Alexandre Julliard's avatar Alexandre Julliard

advapi32: Always pass a valid argv pointer to a service even if there are no arguments.

parent a2d04673
......@@ -383,15 +383,7 @@ static DWORD WINAPI service_thread(LPVOID arg)
len += strlenW(&str[len]) + 1;
argc++;
}
if (!argc)
{
if (info->unicode)
info->proc.w(0, NULL);
else
info->proc.a(0, NULL);
return 0;
}
len++;
if (info->unicode)
{
......
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