Index: base/file_util_win.cc |
=================================================================== |
--- base/file_util_win.cc (revision 32064) |
+++ base/file_util_win.cc (working copy) |
@@ -773,7 +773,10 @@ |
length_(INVALID_FILE_SIZE) { |
} |
-bool MemoryMappedFile::MapFileToMemoryInternal() { |
+bool MemoryMappedFile::MapFileToMemory(const FilePath& file_name) { |
+ file_ = ::CreateFile(file_name.value().c_str(), GENERIC_READ, |
+ FILE_SHARE_READ, NULL, OPEN_EXISTING, |
+ FILE_ATTRIBUTE_NORMAL, NULL); |
if (file_ == INVALID_HANDLE_VALUE) |
return false; |