| 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 <windows.h> // NOLINT | 5 #include <windows.h> // NOLINT |
| 6 #include <fcntl.h> // for _O_* constants | 6 #include <fcntl.h> // for _O_* constants |
| 7 #include <fdi.h> | 7 #include <fdi.h> |
| 8 #include <stddef.h> |
| 8 #include <stdlib.h> | 9 #include <stdlib.h> |
| 9 | 10 |
| 10 #include "chrome/installer/mini_installer/decompress.h" | 11 #include "chrome/installer/mini_installer/decompress.h" |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 FNALLOC(Alloc) { | 15 FNALLOC(Alloc) { |
| 15 return ::HeapAlloc(::GetProcessHeap(), 0, cb); | 16 return ::HeapAlloc(::GetProcessHeap(), 0, cb); |
| 16 } | 17 } |
| 17 | 18 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 &Notify, NULL, const_cast<wchar_t*>(destination))) { | 254 &Notify, NULL, const_cast<wchar_t*>(destination))) { |
| 254 success = true; | 255 success = true; |
| 255 } | 256 } |
| 256 g_FDIDestroy(fdi); | 257 g_FDIDestroy(fdi); |
| 257 } | 258 } |
| 258 | 259 |
| 259 return success; | 260 return success; |
| 260 } | 261 } |
| 261 | 262 |
| 262 } // namespace mini_installer | 263 } // namespace mini_installer |
| OLD | NEW |