Commit 8fd61961 authored by Paul Chitescu's avatar Paul Chitescu Committed by Alexandre Julliard

services.exe: When asked to search by display name skip NULL names.

parent d7994344
......@@ -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;
}
......
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