Chromium Code Reviews| Index: base/allocator/allocator_shim_win.cc |
| diff --git a/base/allocator/allocator_shim_win.cc b/base/allocator/allocator_shim_win.cc |
| index b65544f5dd89ad00db76f36f894347a8506e76df..85084d88c513eaac46a560d2a169a43f7b17f3ea 100644 |
| --- a/base/allocator/allocator_shim_win.cc |
| +++ b/base/allocator/allocator_shim_win.cc |
| @@ -44,17 +44,7 @@ bool win_heap_init() { |
| // Set the _crtheap global here. THis allows us to offload most of the |
| // memory management to the CRT, except the functions we need to shim. |
| _crtheap = GetProcessHeap(); |
| - if (_crtheap == NULL) |
| - return false; |
| - |
| - ULONG enable_lfh = 2; |
| - // NOTE: Setting LFH may fail. Vista already has it enabled. |
| - // And under the debugger, it won't use LFH. So we |
| - // ignore any errors. |
| - HeapSetInformation(_crtheap, HeapCompatibilityInformation, &enable_lfh, |
| - sizeof(enable_lfh)); |
| - |
| - return true; |
| + return _crtheap != NULL; |
|
scottmg
2016/03/29 20:23:32
NULL -> nullptr
manzagop (departed)
2016/03/29 20:35:04
Done.
|
| } |
| void* win_heap_malloc(size_t size) { |