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 cc446e59ab0ca91c2041b95e292b50177d63801a..64fd1f1f6d7f2c173b39d476925b2c1e3a90da6a 100644 |
--- a/sandbox/win/src/sandbox_nt_util.cc |
+++ b/sandbox/win/src/sandbox_nt_util.cc |
@@ -469,7 +469,7 @@ UNICODE_STRING* GetImageInfoFromModule(HMODULE module, uint32* flags) { |
UNICODE_STRING* GetBackingFilePath(PVOID address) { |
// We'll start with something close to max_path charactes for the name. |
- ULONG buffer_bytes = MAX_PATH * 2; |
+ SIZE_T buffer_bytes = MAX_PATH * 2; |
for (;;) { |
MEMORY_SECTION_NAME* section_name = reinterpret_cast<MEMORY_SECTION_NAME*>( |
@@ -478,7 +478,7 @@ UNICODE_STRING* GetBackingFilePath(PVOID address) { |
if (!section_name) |
return NULL; |
- ULONG returned_bytes; |
+ SIZE_T returned_bytes; |
NTSTATUS ret = g_nt.QueryVirtualMemory(NtCurrentProcess, address, |
MemorySectionName, section_name, |
buffer_bytes, &returned_bytes); |