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..f23d4314ebda956fb57da4f85f7b2f51b0ca0188 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_CREATE_PROCESS; |
+ } |
// Now the policy is the owner of the target. |
if (!policy_base->AddTarget(target)) { |