mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 08:14:45 +02:00
Windows: Allow write-only files to be read later.
Fixes #11939, at least the hang described in that issue. Seems to match with how the PSP handles file locking.
This commit is contained in:
@@ -213,7 +213,7 @@ bool DirectoryFileHandle::Open(const std::string &basePath, std::string &fileNam
|
||||
}
|
||||
if (access & FILEACCESS_WRITE) {
|
||||
desired |= GENERIC_WRITE;
|
||||
sharemode |= FILE_SHARE_WRITE;
|
||||
sharemode |= FILE_SHARE_WRITE | FILE_SHARE_READ;
|
||||
}
|
||||
if (access & FILEACCESS_CREATE) {
|
||||
if (access & FILEACCESS_EXCL) {
|
||||
|
||||
Reference in New Issue
Block a user