Skip to content

Commit 21ff443

Browse files
committed
Fixed name hiding.
1 parent 3fdab38 commit 21ff443

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

NativeCore/Windows/ControlRemoteProcess.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ void __stdcall ControlRemoteProcess(RC_Pointer handle, ControlRemoteProcessActio
1010
auto processId = GetProcessId(handle);
1111
if (processId != 0)
1212
{
13-
auto handle = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
14-
if (handle != INVALID_HANDLE_VALUE)
13+
auto snapshotHandle = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
14+
if (snapshotHandle != INVALID_HANDLE_VALUE)
1515
{
1616
auto fn = action == ControlRemoteProcessAction::Suspend ? SuspendThread : ResumeThread;
1717

1818
THREADENTRY32 te32 = {};
1919
te32.dwSize = sizeof(THREADENTRY32);
20-
if (Thread32First(handle, &te32))
20+
if (Thread32First(snapshotHandle, &te32))
2121
{
2222
do
2323
{
@@ -31,10 +31,10 @@ void __stdcall ControlRemoteProcess(RC_Pointer handle, ControlRemoteProcessActio
3131
CloseHandle(threadHandle);
3232
}
3333
}
34-
} while (Thread32Next(handle, &te32));
34+
} while (Thread32Next(snapshotHandle, &te32));
3535
}
3636

37-
CloseHandle(handle);
37+
CloseHandle(snapshotHandle);
3838
}
3939
}
4040
}

0 commit comments

Comments
 (0)