Index: sandbox/win/src/filesystem_interception.cc |
diff --git a/sandbox/win/src/filesystem_interception.cc b/sandbox/win/src/filesystem_interception.cc |
index 459f7ace2d66612442b069c036cab51b2f10ec75..26d790c5c259fd2bd5b7dfa6c771d1d1e45f10d9 100644 |
--- a/sandbox/win/src/filesystem_interception.cc |
+++ b/sandbox/win/src/filesystem_interception.cc |
@@ -4,6 +4,8 @@ |
#include "sandbox/win/src/filesystem_interception.h" |
+#include <stdint.h> |
+ |
#include "sandbox/win/src/crosscall_client.h" |
#include "sandbox/win/src/ipc_tags.h" |
#include "sandbox/win/src/policy_params.h" |
@@ -46,16 +48,16 @@ NTSTATUS WINAPI TargetNtCreateFile(NtCreateFileFunction orig_CreateFile, |
if (NULL == memory) |
break; |
- uint32 attributes = 0; |
+ uint32_t attributes = 0; |
NTSTATUS ret = AllocAndCopyName(object_attributes, &name, &attributes, |
NULL); |
if (!NT_SUCCESS(ret) || NULL == name) |
break; |
- uint32 desired_access_uint32 = desired_access; |
- uint32 options_uint32 = options; |
- uint32 disposition_uint32 = disposition; |
- uint32 broker = FALSE; |
+ uint32_t desired_access_uint32 = desired_access; |
+ uint32_t options_uint32 = options; |
+ uint32_t disposition_uint32 = disposition; |
+ uint32_t broker = FALSE; |
CountedParameterSet<OpenFile> params; |
params[OpenFile::NAME] = ParamPickerMake(name); |
params[OpenFile::ACCESS] = ParamPickerMake(desired_access_uint32); |
@@ -122,16 +124,16 @@ NTSTATUS WINAPI TargetNtOpenFile(NtOpenFileFunction orig_OpenFile, PHANDLE file, |
if (NULL == memory) |
break; |
- uint32 attributes; |
+ uint32_t attributes; |
NTSTATUS ret = AllocAndCopyName(object_attributes, &name, &attributes, |
NULL); |
if (!NT_SUCCESS(ret) || NULL == name) |
break; |
- uint32 desired_access_uint32 = desired_access; |
- uint32 options_uint32 = options; |
- uint32 disposition_uint32 = FILE_OPEN; |
- uint32 broker = FALSE; |
+ uint32_t desired_access_uint32 = desired_access; |
+ uint32_t options_uint32 = options; |
+ uint32_t disposition_uint32 = FILE_OPEN; |
+ uint32_t broker = FALSE; |
CountedParameterSet<OpenFile> params; |
params[OpenFile::NAME] = ParamPickerMake(name); |
params[OpenFile::ACCESS] = ParamPickerMake(desired_access_uint32); |
@@ -192,7 +194,7 @@ NTSTATUS WINAPI TargetNtQueryAttributesFile( |
if (NULL == memory) |
break; |
- uint32 attributes = 0; |
+ uint32_t attributes = 0; |
NTSTATUS ret = AllocAndCopyName(object_attributes, &name, &attributes, |
NULL); |
if (!NT_SUCCESS(ret) || NULL == name) |
@@ -201,7 +203,7 @@ NTSTATUS WINAPI TargetNtQueryAttributesFile( |
InOutCountedBuffer file_info(file_attributes, |
sizeof(FILE_BASIC_INFORMATION)); |
- uint32 broker = FALSE; |
+ uint32_t broker = FALSE; |
CountedParameterSet<FileName> params; |
params[FileName::NAME] = ParamPickerMake(name); |
params[FileName::BROKER] = ParamPickerMake(broker); |
@@ -251,7 +253,7 @@ NTSTATUS WINAPI TargetNtQueryFullAttributesFile( |
if (NULL == memory) |
break; |
- uint32 attributes = 0; |
+ uint32_t attributes = 0; |
NTSTATUS ret = AllocAndCopyName(object_attributes, &name, &attributes, |
NULL); |
if (!NT_SUCCESS(ret) || NULL == name) |
@@ -260,7 +262,7 @@ NTSTATUS WINAPI TargetNtQueryFullAttributesFile( |
InOutCountedBuffer file_info(file_attributes, |
sizeof(FILE_NETWORK_OPEN_INFORMATION)); |
- uint32 broker = FALSE; |
+ uint32_t broker = FALSE; |
CountedParameterSet<FileName> params; |
params[FileName::NAME] = ParamPickerMake(name); |
params[FileName::BROKER] = ParamPickerMake(broker); |
@@ -333,7 +335,7 @@ NTSTATUS WINAPI TargetNtSetInformationFile( |
if (!NT_SUCCESS(ret) || !name) |
break; |
- uint32 broker = FALSE; |
+ uint32_t broker = FALSE; |
CountedParameterSet<FileName> params; |
params[FileName::NAME] = ParamPickerMake(name); |
params[FileName::BROKER] = ParamPickerMake(broker); |