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,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;
......
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