| Index: sandbox/win/src/broker_services.cc
|
| diff --git a/sandbox/win/src/broker_services.cc b/sandbox/win/src/broker_services.cc
|
| index d88e5eba0192335af1df721ea3ca7dd80d3e3d76..120c12755cafebbf1f5f79357ad6598042dfd13a 100644
|
| --- a/sandbox/win/src/broker_services.cc
|
| +++ b/sandbox/win/src/broker_services.cc
|
| @@ -487,8 +487,10 @@ ResultCode BrokerServicesBase::SpawnTarget(const wchar_t* exe_path,
|
| DWORD win_result = target->Create(exe_path, command_line, inherit_handles,
|
| policy_base->GetLowBoxSid() ? true : false,
|
| startup_info, &process_info);
|
| - if (ERROR_SUCCESS != win_result)
|
| - return SpawnCleanup(target, win_result);
|
| + if (ERROR_SUCCESS != win_result) {
|
| + SpawnCleanup(target, win_result);
|
| + return SBOX_ERROR_PROCESS_CREATE;
|
| + }
|
|
|
| // Now the policy is the owner of the target.
|
| if (!policy_base->AddTarget(target)) {
|
|
|