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

Unified Diff: sandbox/src/service_resolver.cc

Issue 378030: 64-bit compatibility changes for the sandbox code (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/src/sandbox_nt_util.cc ('k') | sandbox/src/sidestep/mini_disassembler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/src/service_resolver.cc
===================================================================
--- sandbox/src/service_resolver.cc (revision 31504)
+++ sandbox/src/service_resolver.cc (working copy)
@@ -116,7 +116,7 @@
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 @@
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 @@
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 @@
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 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 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;
« no previous file with comments | « sandbox/src/sandbox_nt_util.cc ('k') | sandbox/src/sidestep/mini_disassembler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698