Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions EventCleaner/GetFileHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ HANDLE fn_trav_proc_handle(DWORD dwProcessId) {
return FALSE;


for (INT i = 0; i <= psHandleInfo->HandleCount; i++) {
for (size_t i = 0; i <= psHandleInfo->HandleCount; i++) {

psHandle = psHandleInfo->Handles[i];
if (psHandle.ProcessId != GetCurrentProcessId())
Expand All @@ -121,7 +121,7 @@ HANDLE fn_trav_proc_handle(DWORD dwProcessId) {
}

wcout << "[+] current system version file objectTypeNumber : 0x" << hex << psHandle.ObjectTypeNumber << endl;
for (INT i = 0; i <= psHandleInfo->HandleCount; i++) {
for (size_t i = 0; i <= psHandleInfo->HandleCount; i++) {

psHandle = psHandleInfo->Handles[i];
if (psHandle.ProcessId != dwProcessId)
Expand Down