Skip to content

Commit

Permalink
Make sure the process has terminated in NPFInstall.exe.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Dec 10, 2016
1 parent e3e0a99 commit b759fe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packetWin7/NPFInstall/NPFInstall/ProcessUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ BOOL killProcess(DWORD dwProcessID)
}
else
{
WaitForSingleObject(hProcess, 5000); // Make sure the process has terminated.
TRACE_PRINT1("killProcess::TerminateProcess: succeeds, dwProcessID = %d.", dwProcessID);
TRACE_EXIT();
return TRUE;
Expand Down Expand Up @@ -433,6 +434,7 @@ BOOL killProcess_Wait(DWORD dwProcessID)
}
else
{
WaitForSingleObject(hProcess, 5000); // Make sure the process has terminated.
TRACE_PRINT1("killProcess_Wait::TerminateProcess: succeeds, dwProcessID = %d.", dwProcessID);
TRACE_EXIT();
return TRUE;
Expand Down

0 comments on commit b759fe3

Please sign in to comment.