diff options
author | Artyom Polkovnikov <artyom.polkovnikov@gmail.com> | 2014-12-31 13:34:37 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:35:44 +0300 |
commit | 94737bf6bf471503c166654581a79b3ca51734e6 (patch) | |
tree | 2cf78aa067cd9d3adae93d7ee25753d5328a2107 /coding/file_container.cpp | |
parent | f1b02dbe7d8af8883c395db29d5914201c5ddfb8 (diff) |
[coding] Remove file mapping name from file container mapping in Windows, as it caused exceptions.
Diffstat (limited to 'coding/file_container.cpp')
-rw-r--r-- | coding/file_container.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coding/file_container.cpp b/coding/file_container.cpp index 9088f29ee5..b3c5892bfa 100644 --- a/coding/file_container.cpp +++ b/coding/file_container.cpp @@ -140,7 +140,7 @@ void FilesMappingContainer::Open(string const & fName) m_hFile = CreateFileA(fName.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, NULL); if (m_hFile == INVALID_HANDLE_VALUE) MYTHROW(Reader::OpenException, ("Can't open file:", fName, "win last error:", GetLastError())); - m_hMapping = CreateFileMappingA(m_hFile, NULL, PAGE_READONLY, 0, 0, fName.c_str()); + m_hMapping = CreateFileMappingA(m_hFile, NULL, PAGE_READONLY, 0, 0, NULL); if (m_hMapping == NULL) MYTHROW(Reader::OpenException, ("Can't create file's Windows mapping:", fName, "win last error:", GetLastError())); #else |