Browse Source

bug fixed

Unknown 7 years ago
parent
commit
ff3541cb0a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Quick.Service.pas

+ 2 - 2
Quick.Service.pas

@@ -7,7 +7,7 @@
   Author      : Kike Pérez
   Version     : 1.1
   Created     : 14/07/2017
-  Modified    : 07/04/2018
+  Modified    : 30/08/2018
 
   This file is part of QuickLib: https://github.com/exilon/QuickLib
 
@@ -147,7 +147,7 @@ begin
         begin
           if QueryServiceStatus(svcHnd,svcStatus) then
           begin
-            while svcStatus.dwCurrentState <> SERVICE_RUNNING do
+            while svcStatus.dwCurrentState = SERVICE_START_PENDING do
             begin
               dwChkP := svcStatus.dwCheckPoint;
               Sleep(svcStatus.dwWaitHint);