services.exe: When asked to search by display name skip NULL names.
This commit is contained in:
parent
d79943446f
commit
8fd619618f
|
@ -349,7 +349,7 @@ struct service_entry *scmdatabase_find_service_by_displayname(struct scmdatabase
|
|||
|
||||
LIST_FOR_EACH_ENTRY(service, &db->services, struct service_entry, entry)
|
||||
{
|
||||
if (strcmpiW(name, service->config.lpDisplayName) == 0)
|
||||
if (service->config.lpDisplayName && strcmpiW(name, service->config.lpDisplayName) == 0)
|
||||
return service;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue