Bug 1146874 Part 1: Check that Windows sandboxed process starts correctly. r=tabraldes

This commit is contained in:
Bob Owen 2015-05-11 08:24:39 +01:00
parent b34c97d19b
commit 94925de358

View File

@ -52,9 +52,12 @@ SandboxBroker::LaunchApp(const wchar_t *aPath,
}
// Ceate the sandboxed process
PROCESS_INFORMATION targetInfo;
PROCESS_INFORMATION targetInfo = {0};
sandbox::ResultCode result;
result = sBrokerService->SpawnTarget(aPath, aArguments, mPolicy, &targetInfo);
if (sandbox::SBOX_ALL_OK != result) {
return false;
}
// The sandboxed process is started in a suspended state, resume it now that
// we've set things up.