diff --git a/libaegisub/common/file_mapping.cpp b/libaegisub/common/file_mapping.cpp index 428706fa6..aeec3a081 100644 --- a/libaegisub/common/file_mapping.cpp +++ b/libaegisub/common/file_mapping.cpp @@ -34,7 +34,7 @@ using namespace boost::interprocess; namespace agi { file_mapping::file_mapping(agi::fs::path const& filename, boost::interprocess::mode_t mode) #ifdef _WIN32 -: handle(CreateFileW(filename.wstring().c_str(), (unsigned int)mode, 0, nullptr, OPEN_EXISTING, 0, 0)) +: handle(CreateFileW(filename.wstring().c_str(), (unsigned int)mode, FILE_SHARE_READ, nullptr, OPEN_EXISTING, 0, 0)) { if (handle == ipcdetail::invalid_file()) { switch (GetLastError()) {