services: Change scmdatabase_remove_service to a void function.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-04-20 10:14:34 +02:00 committed by Alexandre Julliard
parent 556f384ad9
commit 72ae095d75

View file

@ -282,18 +282,11 @@ DWORD scmdatabase_add_service(struct scmdatabase *db, struct service_entry *serv
return ERROR_SUCCESS;
}
static DWORD scmdatabase_remove_service(struct scmdatabase *db, struct service_entry *service)
static void scmdatabase_remove_service(struct scmdatabase *db, struct service_entry *service)
{
int err;
err = RegDeleteTreeW(db->root_key, service->name);
if (err != 0)
return err;
RegDeleteTreeW(db->root_key, service->name);
list_remove(&service->entry);
service->entry.next = service->entry.prev = NULL;
return ERROR_SUCCESS;
}
static void scmdatabase_autostart_services(struct scmdatabase *db)