Merge pull request #82 from fig2k4/master

dwResumeHandle initialized before calling EnumServicesStatusEx()
This commit is contained in:
Stas'M 2016-01-15 19:06:32 +03:00
commit 2fe23a1b4f
1 changed files with 2 additions and 0 deletions

View File

@ -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,