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

This commit is contained in:
Alexandre Julliard 2008-09-25 11:19:39 +02:00
parent a2d04673e6
commit cd3805336e
1 changed files with 1 additions and 9 deletions

View File

@ -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;