Skip to content

Commit ff3541c

Browse files
committed
bug fixed
1 parent 5ce25b2 commit ff3541c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Quick.Service.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Author : Kike Pérez
88
Version : 1.1
99
Created : 14/07/2017
10-
Modified : 07/04/2018
10+
Modified : 30/08/2018
1111
1212
This file is part of QuickLib: https://github.com/exilon/QuickLib
1313
@@ -147,7 +147,7 @@ function ServiceStart(const aMachine, aServiceName : string) : Boolean;
147147
begin
148148
if QueryServiceStatus(svcHnd,svcStatus) then
149149
begin
150-
while svcStatus.dwCurrentState <> SERVICE_RUNNING do
150+
while svcStatus.dwCurrentState = SERVICE_START_PENDING do
151151
begin
152152
dwChkP := svcStatus.dwCheckPoint;
153153
Sleep(svcStatus.dwWaitHint);

0 commit comments

Comments
 (0)