diff options
author | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 00:49:11 +0000 |
---|---|---|
committer | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-11 00:49:11 +0000 |
commit | bb74090c99b24d5bc539f6c5c9fcfdca14174be0 (patch) | |
tree | ea41eabc2bc163fba2d906aac851e58bf2e33d9a /sandbox/src/service_resolver.cc | |
parent | 8f763a300158b4917e0cc1267f4c7d45fa72b572 (diff) | |
download | chromium_src-bb74090c99b24d5bc539f6c5c9fcfdca14174be0.zip chromium_src-bb74090c99b24d5bc539f6c5c9fcfdca14174be0.tar.gz chromium_src-bb74090c99b24d5bc539f6c5c9fcfdca14174be0.tar.bz2 |
64-bit compatibility changes for the sandbox code
This CL contains some basic changes that eliminate some of the warnings that appear when the sandbox code is compiled for 64-bit Windows. This is part of a larger effort to support Native Client on 64-bit Windows (that will require the sandbox to support 64-bit Windows).
TEST=will be tested when the rest of the code builds for 64-bit Windows
BUG=27218
Review URL: http://codereview.chromium.org/378030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/src/service_resolver.cc')
-rw-r--r-- | sandbox/src/service_resolver.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sandbox/src/service_resolver.cc b/sandbox/src/service_resolver.cc index 9cdd824..069b37f 100644 --- a/sandbox/src/service_resolver.cc +++ b/sandbox/src/service_resolver.cc @@ -116,7 +116,7 @@ bool WriteProtectedChildMemory(HANDLE child_process, PAGE_WRITECOPY, &old_protection)) return false; - DWORD written; + SIZE_T written; bool ok = ::WriteProcessMemory(child_process, address, buffer, length, &written) && (length == written); @@ -197,7 +197,7 @@ size_t ServiceResolverThunk::GetThunkSize() const { bool ServiceResolverThunk::IsFunctionAService(void* local_thunk) const { ServiceEntry function_code; - DWORD read; + SIZE_T read; if (!::ReadProcessMemory(process_, target_, &function_code, sizeof(function_code), &read)) return false; @@ -293,7 +293,7 @@ NTSTATUS ServiceResolverThunk::PerformPatch(void* local_thunk, size_t thunk_size = GetThunkSize(); // copy the local thunk buffer to the child - DWORD written; + SIZE_T written; if (!::WriteProcessMemory(process_, remote_thunk, local_thunk, thunk_size, &written)) return STATUS_UNSUCCESSFUL; @@ -319,7 +319,7 @@ NTSTATUS ServiceResolverThunk::PerformPatch(void* local_thunk, bool ServiceResolverThunk::SaveOriginalFunction(void* local_thunk, void* remote_thunk) { ServiceEntry function_code; - DWORD read; + SIZE_T read; if (!::ReadProcessMemory(process_, target_, &function_code, sizeof(function_code), &read)) return false; @@ -354,7 +354,7 @@ bool ServiceResolverThunk::SaveOriginalFunction(void* local_thunk, bool Wow64ResolverThunk::IsFunctionAService(void* local_thunk) const { Wow64Entry function_code; - DWORD read; + SIZE_T read; if (!::ReadProcessMemory(process_, target_, &function_code, sizeof(function_code), &read)) return false; @@ -380,7 +380,7 @@ bool Wow64ResolverThunk::IsFunctionAService(void* local_thunk) const { bool Win2kResolverThunk::IsFunctionAService(void* local_thunk) const { ServiceEntry function_code; - DWORD read; + SIZE_T read; if (!::ReadProcessMemory(process_, target_, &function_code, sizeof(function_code), &read)) return false; |