mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00: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:
1 parent
dc9e794867
commit
761a9d321f
1 file changed
+1
-1
@@ -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