mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 14:24:45 +00:00
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:
parent
556f384ad9
commit
72ae095d75
1 changed files with 2 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue