Commit e74bda9d authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

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

NULL instead.
parent bf2f5a8f
......@@ -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)
{
......
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