OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Implementation of NtMapViewOfSection intercept for 32 bit builds. | 5 // Implementation of NtMapViewOfSection intercept for 32 bit builds. |
6 // | 6 // |
7 // TODO(robertshield): Implement the 64 bit intercept. | 7 // TODO(robertshield): Implement the 64 bit intercept. |
8 | 8 |
9 #include "chrome_elf/blacklist/blacklist_interceptions.h" | 9 #include "chrome_elf/blacklist/blacklist_interceptions.h" |
10 | 10 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 if (!module_name.empty() && DllMatch(module_name)) { | 222 if (!module_name.empty() && DllMatch(module_name)) { |
223 DCHECK_NT(g_nt_unmap_view_of_section_func); | 223 DCHECK_NT(g_nt_unmap_view_of_section_func); |
224 g_nt_unmap_view_of_section_func(process, *base); | 224 g_nt_unmap_view_of_section_func(process, *base); |
225 ret = STATUS_UNSUCCESSFUL; | 225 ret = STATUS_UNSUCCESSFUL; |
226 } | 226 } |
227 } | 227 } |
228 | 228 |
229 return ret; | 229 return ret; |
230 } | 230 } |
231 | 231 |
| 232 #if defined(_WIN64) |
| 233 NTSTATUS WINAPI BlNtMapViewOfSection64( |
| 234 HANDLE section, HANDLE process, PVOID *base, ULONG_PTR zero_bits, |
| 235 SIZE_T commit_size, PLARGE_INTEGER offset, PSIZE_T view_size, |
| 236 SECTION_INHERIT inherit, ULONG allocation_type, ULONG protect) { |
| 237 return BlNtMapViewOfSection(g_nt_map_view_of_section_func, section, process, |
| 238 base, zero_bits, commit_size, offset, view_size, |
| 239 inherit, allocation_type, protect); |
| 240 } |
| 241 #endif |
232 } // namespace blacklist | 242 } // namespace blacklist |
OLD | NEW |