Index: sandbox/win/src/sandbox_nt_util.cc |
diff --git a/sandbox/win/src/sandbox_nt_util.cc b/sandbox/win/src/sandbox_nt_util.cc |
index 64fd1f1f6d7f2c173b39d476925b2c1e3a90da6a..4f2720fe1b86a08f87df45de52e47556defaf1c2 100644 |
--- a/sandbox/win/src/sandbox_nt_util.cc |
+++ b/sandbox/win/src/sandbox_nt_util.cc |
@@ -337,7 +337,7 @@ NTSTATUS AllocAndCopyName(const OBJECT_ATTRIBUTES* in_object, |
return ret; |
} |
-NTSTATUS GetProcessId(HANDLE process, ULONG *process_id) { |
+NTSTATUS GetProcessId(HANDLE process, DWORD *process_id) { |
PROCESS_BASIC_INFORMATION proc_info; |
ULONG bytes_returned; |
@@ -355,7 +355,7 @@ bool IsSameProcess(HANDLE process) { |
if (NtCurrentProcess == process) |
return true; |
- static ULONG s_process_id = 0; |
+ static DWORD s_process_id = 0; |
if (!s_process_id) { |
NTSTATUS ret = GetProcessId(NtCurrentProcess, &s_process_id); |
@@ -363,7 +363,7 @@ bool IsSameProcess(HANDLE process) { |
return false; |
} |
- ULONG process_id; |
+ DWORD process_id; |
NTSTATUS ret = GetProcessId(process, &process_id); |
if (!NT_SUCCESS(ret)) |
return false; |