Bug 543441 - Avoid a race condition induced crash when trying to nsProcess::Kill() a terminated process [r=dtownsend]
This commit is contained in:
@@ -560,7 +560,7 @@ nsProcess::Kill()
|
||||
if (TerminateProcess(mProcess, NULL) == 0)
|
||||
return NS_ERROR_FAILURE;
|
||||
#else
|
||||
if (PR_KillProcess(mProcess) != PR_SUCCESS)
|
||||
if (!mProcess || (PR_KillProcess(mProcess) != PR_SUCCESS))
|
||||
return NS_ERROR_FAILURE;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user