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:
parent
9a18a62fb2
commit
20633b292b
|
@ -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;
|
||||
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue