Chromium Code Reviews| Index: chrome/browser/conflicts/module_event_sink_impl_win.cc |
| diff --git a/chrome/browser/conflicts/module_event_sink_impl_win.cc b/chrome/browser/conflicts/module_event_sink_impl_win.cc |
| index d58475bab49427b6b1a8fc64e49d2c98e2e6dfd2..e7918b8e7ca0bf1e98b1eb08d4b7fb48e17a4533 100644 |
| --- a/chrome/browser/conflicts/module_event_sink_impl_win.cc |
| +++ b/chrome/browser/conflicts/module_event_sink_impl_win.cc |
| @@ -64,11 +64,11 @@ bool ReadRemoteData(base::ProcessHandle process, uint64_t address, T* data) { |
| const void* typed_address = |
| reinterpret_cast<const void*>(static_cast<uintptr_t>(address)); |
| SIZE_T bytes_read = 0; |
| - if (!::ReadProcessMemory(process, typed_address, data, sizeof(data), |
| + if (!::ReadProcessMemory(process, typed_address, data, sizeof(*data), |
|
chrisha
2017/02/15 21:23:42
Pointers are hard /facepalm
Thanks for catching t
Nico
2017/02/15 21:47:58
Do we have 64-bit sanitizer bots? The clang/asan r
|
| &bytes_read)) { |
| return false; |
| } |
| - if (bytes_read != sizeof(data)) |
| + if (bytes_read != sizeof(*data)) |
| return false; |
| return true; |
| } |