advapi32: Don't allocate memory for empty argument string and pass
NULL instead.
This commit is contained in:
parent
bf2f5a8f17
commit
e74bda9d95
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue