Clear FILE_NO_INTERMEDIATE_BUFFERING in IoCreateFile

Fixes JSRF issue with loading titles from Windows Storage Spaces
This commit is contained in:
Anthony 2022-04-06 19:48:52 +12:00
parent 5f7b9417b0
commit 88b686c27d
1 changed files with 5 additions and 0 deletions

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;