Continue after close old process #5277

This commit is contained in:
Jerry (Xinyu Hou) 2016-05-09 06:31:05 -07:00
parent fa2a6a2169
commit 80292961ad
1 changed files with 4 additions and 2 deletions

View File

@ -934,9 +934,11 @@ init(DWORD threadID)
// old process (probably) still exists so refuse to // old process (probably) still exists so refuse to
// reinitialize this DLL (and thus steal it from the // reinitialize this DLL (and thus steal it from the
// old process). // old process).
CloseHandle(process); int result = CloseHandle(process);
if (result == false) {
return 0; return 0;
} }
}
// clean up after old process. the system should've already // clean up after old process. the system should've already
// removed the hooks so we just need to reset our state. // removed the hooks so we just need to reset our state.