mirror of
https://github.com/stascorp/rdpwrap.git
synced 2025-07-07 05:21:28 -07:00
dwResumeHandle initialized before calling EnumServicesStatusEx()
This commit is contained in:
parent
b4a0fe1a7a
commit
b0c471660b
1 changed files with 2 additions and 0 deletions
|
@ -349,6 +349,8 @@ begin
|
||||||
Halt(Code);
|
Halt(Code);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
dwResumeHandle:=0;
|
||||||
|
|
||||||
SetLength(Svc, 1489);
|
SetLength(Svc, 1489);
|
||||||
FillChar(Svc[0], sizeof(Svc[0])*Length(Svc), 0);
|
FillChar(Svc[0], sizeof(Svc[0])*Length(Svc), 0);
|
||||||
if not EnumServicesStatusEx(hSC, SC_ENUM_PROCESS_INFO, SERVICE_WIN32, SERVICE_STATE_ALL,
|
if not EnumServicesStatusEx(hSC, SC_ENUM_PROCESS_INFO, SERVICE_WIN32, SERVICE_STATE_ALL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue