On Fri, Aug 26, 2011 at 17:35, Francois Gouget fgouget@codeweavers.com wrote:
Totally independent from my other (futur) services patches.
programs/services/services.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/programs/services/services.c b/programs/services/services.c index 35edbba..ff824bc 100644 --- a/programs/services/services.c +++ b/programs/services/services.c @@ -289,12 +289,11 @@ static void scmdatabase_autostart_services(struct scmdatabase *db) size = i; for (i = 0; i < size; i++) {
- DWORD err;
const WCHAR *argv[2]; service = services_list[i]; argv[0] = service->name; argv[1] = NULL;
- err = service_start(service, 1, argv);
- service_start(service, 1, argv);
/* FIXME: do something if the service failed to start */ release_service(service); }
Wouldn't it be better to do something with err rather than muting (as the comment suggests)?