services.exe: Pass the service name as first argument when auto-starting services.

This commit is contained in:
Alexandre Julliard 2008-07-02 12:02:11 +02:00
parent c4133613df
commit 7e8ecd2d64
1 changed files with 4 additions and 1 deletions

View File

@ -256,8 +256,11 @@ static void scmdatabase_autostart_services(struct scmdatabase *db)
for (i = 0; i < size; i++) for (i = 0; i < size; i++)
{ {
DWORD err; DWORD err;
const WCHAR *argv[2];
service = services_list[i]; service = services_list[i];
err = service_start(service, 0, NULL); argv[0] = service->name;
argv[1] = NULL;
err = service_start(service, 1, argv);
/* FIXME: do something if the service failed to start */ /* FIXME: do something if the service failed to start */
release_service(service); release_service(service);
} }