From b0c471660b2e80c0e9ea652d44bd6d454e426fb2 Mon Sep 17 00:00:00 2001 From: fig2k4 Date: Fri, 15 Jan 2016 16:00:36 +0000 Subject: [PATCH] dwResumeHandle initialized before calling EnumServicesStatusEx() --- src-installer/RDPWInst.dpr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-installer/RDPWInst.dpr b/src-installer/RDPWInst.dpr index 05bf36b..dd120a0 100644 --- a/src-installer/RDPWInst.dpr +++ b/src-installer/RDPWInst.dpr @@ -349,6 +349,8 @@ begin Halt(Code); end; + dwResumeHandle:=0; + SetLength(Svc, 1489); FillChar(Svc[0], sizeof(Svc[0])*Length(Svc), 0); if not EnumServicesStatusEx(hSC, SC_ENUM_PROCESS_INFO, SERVICE_WIN32, SERVICE_STATE_ALL,