OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "app/win/iat_patch_function.h" | 5 #include "base/win/iat_patch_function.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/win/pe_image.h" | 8 #include "base/win/pe_image.h" |
9 | 9 |
10 namespace app { | 10 namespace base { |
11 namespace win { | 11 namespace win { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 struct InterceptFunctionInformation { | 15 struct InterceptFunctionInformation { |
16 bool finished_operation; | 16 bool finished_operation; |
17 const char* imported_from_module; | 17 const char* imported_from_module; |
18 const char* function_name; | 18 const char* function_name; |
19 void* new_function; | 19 void* new_function; |
20 void** old_function; | 20 void** old_function; |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 FreeLibrary(module_handle_); | 268 FreeLibrary(module_handle_); |
269 module_handle_ = NULL; | 269 module_handle_ = NULL; |
270 intercept_function_ = NULL; | 270 intercept_function_ = NULL; |
271 original_function_ = NULL; | 271 original_function_ = NULL; |
272 iat_thunk_ = NULL; | 272 iat_thunk_ = NULL; |
273 | 273 |
274 return error; | 274 return error; |
275 } | 275 } |
276 | 276 |
277 } // namespace win | 277 } // namespace win |
278 } // namespace app | 278 } // namespace base |
OLD | NEW |