mirror of
https://github.com/reactos/wine.git
synced 2025-02-04 11:08:48 +00:00
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…
x
Reference in New Issue
Block a user