| Index: sandbox/win/src/sync_policy.cc
|
| diff --git a/sandbox/win/src/sync_policy.cc b/sandbox/win/src/sync_policy.cc
|
| index 379e8f455df16bd4e8e77ad87b11af85501aa28c..7ef094ff73e5c7c0faed13985f92466eda381965 100644
|
| --- a/sandbox/win/src/sync_policy.cc
|
| +++ b/sandbox/win/src/sync_policy.cc
|
| @@ -2,6 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <stdint.h>
|
| +
|
| #include <string>
|
|
|
| #include "sandbox/win/src/sync_policy.h"
|
| @@ -145,8 +147,8 @@ bool SyncPolicy::GenerateRules(const wchar_t* name,
|
| if (TargetPolicy::EVENTS_ALLOW_READONLY == semantics) {
|
| // We consider all flags that are not known to be readonly as potentially
|
| // used for write.
|
| - uint32 allowed_flags = SYNCHRONIZE | GENERIC_READ | READ_CONTROL;
|
| - uint32 restricted_flags = ~allowed_flags;
|
| + uint32_t allowed_flags = SYNCHRONIZE | GENERIC_READ | READ_CONTROL;
|
| + uint32_t restricted_flags = ~allowed_flags;
|
| open.AddNumberMatch(IF_NOT, OpenEventParams::ACCESS, restricted_flags, AND);
|
| }
|
|
|
| @@ -168,10 +170,10 @@ bool SyncPolicy::GenerateRules(const wchar_t* name,
|
|
|
| NTSTATUS SyncPolicy::CreateEventAction(EvalResult eval_result,
|
| const ClientInfo& client_info,
|
| - const base::string16 &event_name,
|
| - uint32 event_type,
|
| - uint32 initial_state,
|
| - HANDLE *handle) {
|
| + const base::string16& event_name,
|
| + uint32_t event_type,
|
| + uint32_t initial_state,
|
| + HANDLE* handle) {
|
| NtCreateEventFunction NtCreateEvent = NULL;
|
| ResolveNTFunctionPtr("NtCreateEvent", &NtCreateEvent);
|
|
|
| @@ -207,9 +209,9 @@ NTSTATUS SyncPolicy::CreateEventAction(EvalResult eval_result,
|
|
|
| NTSTATUS SyncPolicy::OpenEventAction(EvalResult eval_result,
|
| const ClientInfo& client_info,
|
| - const base::string16 &event_name,
|
| - uint32 desired_access,
|
| - HANDLE *handle) {
|
| + const base::string16& event_name,
|
| + uint32_t desired_access,
|
| + HANDLE* handle) {
|
| NtOpenEventFunction NtOpenEvent = NULL;
|
| ResolveNTFunctionPtr("NtOpenEvent", &NtOpenEvent);
|
|
|
|
|