PO-1666 Corrections to bad formatting introduced by VS2019

This commit is contained in:
Kelby Murie 2023-11-10 15:19:10 +11:00
parent 2d772b55dc
commit fd445147b5

View File

@ -166,8 +166,8 @@ static DWORD WINAPI ProvideStdIn(void *param) {
* This method copies the original wrappers' behaviour with optimization for common parameters.
*/
bool GrantAccessToObject(HANDLE object, base::win::WellKnownSid known_sid) {
absl::optional<base::win::SecurityDescriptor> sd =
base::win::SecurityDescriptor::FromHandle(object, base::win::SecurityObjectType::kKernel, DACL_SECURITY_INFORMATION);
absl::optional<base::win::SecurityDescriptor> sd = base::win::SecurityDescriptor::FromHandle(
object, base::win::SecurityObjectType::kKernel, DACL_SECURITY_INFORMATION);
if (!sd) {
return false;
}
@ -252,8 +252,8 @@ static int RunParent(int argc, wchar_t* argv[],
NULL);
// Set the security on
if (!GrantAccessToObject(stdout_pipe, base::win::WellKnownSid::kWorld)) {
fprintf(stderr, "Sandbox: Failed to set security on stdout pipe.\n");
return 52;
fprintf(stderr, "Sandbox: Failed to set security on stdout pipe.\n");
return 52;
}
DWORD thread_id;