Skip to content

Commit 1950560

Browse files
committed
Minor
1 parent 50f5e84 commit 1950560

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/Inject/tests/testsInject.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ bool testInject()
4949
output += c2RetMessage.returnvalue();
5050
output += "\n";
5151
std::cout << output << std::endl;
52+
53+
HANDLE hProc = OpenProcess(PROCESS_TERMINATE, FALSE, pid);
54+
if (hProc) {
55+
TerminateProcess(hProc, 0);
56+
CloseHandle(hProc);
57+
}
5258
#endif
5359
}
5460

0 commit comments

Comments
 (0)