OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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> | 5 #include <windows.h> |
6 #include <setupapi.h> | 6 #include <setupapi.h> |
| 7 #include <stddef.h> |
7 #include <winioctl.h> | 8 #include <winioctl.h> |
8 | 9 |
9 #include "chrome/utility/image_writer/error_messages.h" | 10 #include "chrome/utility/image_writer/error_messages.h" |
10 #include "chrome/utility/image_writer/image_writer.h" | 11 #include "chrome/utility/image_writer/image_writer.h" |
11 | 12 |
12 namespace image_writer { | 13 namespace image_writer { |
13 | 14 |
14 const size_t kStorageQueryBufferSize = 1024; | 15 const size_t kStorageQueryBufferSize = 1024; |
15 | 16 |
16 bool ImageWriter::IsValidDevice() { | 17 bool ImageWriter::IsValidDevice() { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 | 191 |
191 if (volume_finder != INVALID_HANDLE_VALUE) { | 192 if (volume_finder != INVALID_HANDLE_VALUE) { |
192 FindVolumeClose(volume_finder); | 193 FindVolumeClose(volume_finder); |
193 } | 194 } |
194 | 195 |
195 if (success) | 196 if (success) |
196 continuation.Run(); | 197 continuation.Run(); |
197 } | 198 } |
198 | 199 |
199 } // namespace image_writer | 200 } // namespace image_writer |
OLD | NEW |