services: Consistently use InterlockedIncrement to increment refcount.

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-03-02 07:18:30 +01:00 committed by Alexandre Julliard
parent 9a18a62fb2
commit 20633b292b
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ static void run_after_timeout(void (*func)(struct service_entry*), struct servic
return;
}
service->ref_count++;
InterlockedIncrement(&service->ref_count);
elem->func = func;
elem->service_entry = service;

View File

@ -299,7 +299,7 @@ static void scmdatabase_autostart_services(struct scmdatabase *db)
services_list = slist_new;
}
services_list[i] = service;
service->ref_count++;
InterlockedIncrement(&service->ref_count);
i++;
}
}