summaryrefslogtreecommitdiffstats
path: root/chrome_elf
diff options
context:
space:
mode:
authorrnk <rnk@chromium.org>2015-02-25 16:40:54 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-26 00:41:55 +0000
commit266720b3da80e4be6b5feef669d0108fea5eded1 (patch)
tree65eb3e643f2daaef068f7aefdaeac7fe0e51798c /chrome_elf
parentb23b8b4e42a2dbcebed77e7e1cda07cbc6dfa0f2 (diff)
downloadchromium_src-266720b3da80e4be6b5feef669d0108fea5eded1.zip
chromium_src-266720b3da80e4be6b5feef669d0108fea5eded1.tar.gz
chromium_src-266720b3da80e4be6b5feef669d0108fea5eded1.tar.bz2
Reland the ULONG -> SIZE_T change from 317177
Testing shows that this change is correct, but there was no evidence supporting the other change. Will manually run the x64 dbg test try bot for this change. TBR=thakis@chromium.org,jvoung@chromium.org BUG=458690,460563 Review URL: https://codereview.chromium.org/942003008 Cr-Commit-Position: refs/heads/master@{#318160}
Diffstat (limited to 'chrome_elf')
-rw-r--r--chrome_elf/blacklist/blacklist_interceptions.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome_elf/blacklist/blacklist_interceptions.cc b/chrome_elf/blacklist/blacklist_interceptions.cc
index 28eb692..07825ec 100644
--- a/chrome_elf/blacklist/blacklist_interceptions.cc
+++ b/chrome_elf/blacklist/blacklist_interceptions.cc
@@ -51,7 +51,7 @@ base::string16 GetBackingModuleFilePath(PVOID address) {
DCHECK_NT(g_nt_query_virtual_memory_func);
// We'll start with something close to max_path characters for the name.
- ULONG buffer_bytes = MAX_PATH * 2;
+ SIZE_T buffer_bytes = MAX_PATH * 2;
std::vector<BYTE> buffer_data(buffer_bytes);
for (;;) {
@@ -61,7 +61,7 @@ base::string16 GetBackingModuleFilePath(PVOID address) {
if (!section_name)
break;
- ULONG returned_bytes;
+ SIZE_T returned_bytes;
NTSTATUS ret = g_nt_query_virtual_memory_func(
NtCurrentProcess, address, MemorySectionName, section_name,
buffer_bytes, &returned_bytes);