Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1279)

Unified Diff: sandbox/win/src/process_thread_interception.cc

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/process_thread_dispatcher.cc ('k') | sandbox/win/src/process_thread_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/process_thread_interception.cc
diff --git a/sandbox/win/src/process_thread_interception.cc b/sandbox/win/src/process_thread_interception.cc
index 2d459b6786ac646919bad9087387db84eb540cc0..bbf753ea536db9701aec6c088223ba622088cd76 100644
--- a/sandbox/win/src/process_thread_interception.cc
+++ b/sandbox/win/src/process_thread_interception.cc
@@ -4,6 +4,8 @@
#include "sandbox/win/src/process_thread_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"
@@ -34,7 +36,7 @@ NTSTATUS WINAPI TargetNtOpenThread(NtOpenThreadFunction orig_OpenThread,
if (!client_id)
break;
- uint32 thread_id = 0;
+ uint32_t thread_id = 0;
bool should_break = false;
__try {
// We support only the calls for the current process
@@ -52,8 +54,8 @@ NTSTATUS WINAPI TargetNtOpenThread(NtOpenThreadFunction orig_OpenThread,
}
}
- thread_id = static_cast<uint32>(
- reinterpret_cast<ULONG_PTR>(client_id->UniqueThread));
+ thread_id = static_cast<uint32_t>(
+ reinterpret_cast<ULONG_PTR>(client_id->UniqueThread));
} __except(EXCEPTION_EXECUTE_HANDLER) {
break;
}
@@ -116,7 +118,7 @@ NTSTATUS WINAPI TargetNtOpenProcess(NtOpenProcessFunction orig_OpenProcess,
if (!client_id)
break;
- uint32 process_id = 0;
+ uint32_t process_id = 0;
bool should_break = false;
__try {
// Object attributes should be NULL or empty.
@@ -130,8 +132,8 @@ NTSTATUS WINAPI TargetNtOpenProcess(NtOpenProcessFunction orig_OpenProcess,
}
}
- process_id = static_cast<uint32>(
- reinterpret_cast<ULONG_PTR>(client_id->UniqueProcess));
+ process_id = static_cast<uint32_t>(
+ reinterpret_cast<ULONG_PTR>(client_id->UniqueProcess));
} __except(EXCEPTION_EXECUTE_HANDLER) {
break;
}
« no previous file with comments | « sandbox/win/src/process_thread_dispatcher.cc ('k') | sandbox/win/src/process_thread_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698