| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome_frame/buggy_bho_handling.h" | 5 #include "chrome_frame/buggy_bho_handling.h" |
| 6 | 6 |
| 7 #include <algorithm> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| 9 #include "base/win/scoped_comptr.h" | 11 #include "base/win/scoped_comptr.h" |
| 10 | 12 |
| 11 #include "chrome_frame/exception_barrier.h" | 13 #include "chrome_frame/exception_barrier.h" |
| 12 #include "chrome_frame/function_stub.h" | 14 #include "chrome_frame/function_stub.h" |
| 13 #include "chrome_frame/utils.h" | 15 #include "chrome_frame/utils.h" |
| 14 #include "chrome_frame/vtable_patch_manager.h" | 16 #include "chrome_frame/vtable_patch_manager.h" |
| 15 | 17 |
| 16 namespace buggy_bho { | 18 namespace buggy_bho { |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 } else { | 228 } else { |
| 227 PinModule(); // No backing out now. | 229 PinModule(); // No backing out now. |
| 228 ::FlushInstructionCache(::GetCurrentProcess(), invoke, sizeof(PROC)); | 230 ::FlushInstructionCache(::GetCurrentProcess(), invoke, sizeof(PROC)); |
| 229 } | 231 } |
| 230 } | 232 } |
| 231 ::VirtualProtect(invoke, sizeof(PROC), flags, &flags); | 233 ::VirtualProtect(invoke, sizeof(PROC), flags, &flags); |
| 232 return hr; | 234 return hr; |
| 233 } | 235 } |
| 234 | 236 |
| 235 } // end namespace buggy_bho | 237 } // end namespace buggy_bho |
| OLD | NEW |