advapi32: Don't allocate memory for empty argument string and pass

NULL instead.
This commit is contained in:
Vitaliy Margolen 2006-01-03 12:05:32 +01:00 committed by Alexandre Julliard
parent bf2f5a8f17
commit e74bda9d95
1 changed files with 9 additions and 0 deletions

View File

@ -359,6 +359,15 @@ 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;
}
if (info->unicode)
{