Update DumpPEFromMemory.cpp

This commit is contained in:
Winslow
2024-02-16 19:44:01 -05:00
committed by GitHub
parent bcb81d550a
commit 444ef28d24
+5 -1
View File
@@ -166,6 +166,10 @@ int main(int argc, char* argv[])
printf("Error");
}
TerminateProcess(pi.hProcess, 0);
if (!TerminateProcess(pi.hProcess, 0)) {
printf("TerminateProcess failed (%d).\n", GetLastError());
return 1;
}
return 0;
}