Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: util/win/scoped_handle.cc

Issue 815053004: Switch [String]FileWriter to use new file_io.h functions/types (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@file_io_seek-2
Patch Set: fixes Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « util/file/string_file_writer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/win/scoped_handle.cc
diff --git a/util/win/scoped_handle.cc b/util/win/scoped_handle.cc
index 34c1ec7b9fcf30025cffd040eba69f1151d484d5..5eb440e045da703f76162fe8bc5e84a54b23e77a 100644
--- a/util/win/scoped_handle.cc
+++ b/util/win/scoped_handle.cc
@@ -15,12 +15,13 @@
#include "util/win/scoped_handle.h"
#include "base/logging.h"
+#include "util/file/file_io.h"
namespace crashpad {
namespace internal {
void ScopedFileHANDLECloseTraits::Free(HANDLE handle) {
- PCHECK(CloseHandle(handle));
+ CheckedCloseFile(handle);
}
void ScopedKernelHANDLECloseTraits::Free(HANDLE handle) {
« no previous file with comments | « util/file/string_file_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698