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:
parent
dc9e794867
commit
761a9d321f
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue