From efa4d53177cb237a3a10fcb32353df227936f189 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 9 Jan 2014 09:51:59 +0000 Subject: [PATCH] Fix bug introduced in rev 1.29 (Sep-4-2005): mute, unmute and recycle commands all stopped the service instead. Thanks for the bug report, art! --- src/sbbs3/ntsvcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/ntsvcs.c b/src/sbbs3/ntsvcs.c index f2705960c0..efda0b6668 100644 --- a/src/sbbs3/ntsvcs.c +++ b/src/sbbs3/ntsvcs.c @@ -8,7 +8,7 @@ * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2014 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -916,7 +916,7 @@ static void control_service(SC_HANDLE hSCManager, char* name, char* disp_name, D return; /* try to stop the service */ - if(!ControlService( hService, SERVICE_CONTROL_STOP, &status)) { + if(!ControlService( hService, ctrl, &status)) { if((err=GetLastError())==ERROR_SERVICE_NOT_ACTIVE) printf("Not active\n"); else -- GitLab