Index: base/files/file_win.cc |
diff --git a/base/files/file_win.cc b/base/files/file_win.cc |
index 97928522f106c3c16c58ed0e03b62901da3416a8..ccecb70531202a0359b5e07157c14d43cc5e00ff 100644 |
--- a/base/files/file_win.cc |
+++ b/base/files/file_win.cc |
@@ -308,7 +308,7 @@ File::Error File::OSErrorToFileError(DWORD last_error) { |
} |
} |
-void File::DoInitialize(uint32 flags) { |
+void File::DoInitialize(const FilePath& path, uint32 flags) { |
ThreadRestrictions::AssertIOAllowed(); |
DCHECK(!IsValid()); |
@@ -376,8 +376,8 @@ void File::DoInitialize(uint32 flags) { |
if (flags & FLAG_BACKUP_SEMANTICS) |
create_flags |= FILE_FLAG_BACKUP_SEMANTICS; |
- file_.Set(CreateFile(path_.value().c_str(), access, sharing, NULL, |
- disposition, create_flags, NULL)); |
+ file_.Set(CreateFile(path.value().c_str(), access, sharing, NULL, disposition, |
+ create_flags, NULL)); |
if (file_.IsValid()) { |
error_details_ = FILE_OK; |