Commit 20633b29 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

services: Consistently use InterlockedIncrement to increment refcount.

parent 9a18a62f
......@@ -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++;
}
}
......
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