Merge pull request #2341 from NZJenkins/jsrf-storage-spaces

Clear FILE_NO_INTERMEDIATE_BUFFERING in IoCreateFile
This commit is contained in:
NZJenkins 2022-04-07 19:32:28 +12:00 committed by GitHub
commit 72908248eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -905,7 +905,7 @@ private:
return false;
}
assert(HostVertexElementDataType > 0);
assert(HostVertexElementDataType < D3DDECLTYPE_UNUSED);
assert(HostVertexElementByteSize > 0);
// Select new stream, if needed

View File

@ -265,6 +265,11 @@ XBSYSAPI EXPORTNUM(66) xbox::ntstatus_xt NTAPI xbox::IoCreateFile
DesiredAccess |= SYNCHRONIZE;
}
// Titles can make assumptions about where files are located, but cxbxr can't for end users
// Prevent issues with files stored on Windows Storage Spaces (and possibly other "exotic" places)
// Test case: JSRF
CreateOptions &= (~FILE_NO_INTERMEDIATE_BUFFERING);
// Force ShareAccess to all
ShareAccess = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;