Merge pull request #2060 from ergo720/ff_fix

Fix incorrect flags in NtDuplicateObject
This commit is contained in:
Luke Usher 2020-12-08 16:52:12 +00:00 committed by GitHub
commit 10ba282305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -702,9 +702,10 @@ XBSYSAPI EXPORTNUM(197) xbox::ntstatus_xt NTAPI xbox::NtDuplicateObject
}
else
{
// TODO : What arguments should we use?
// On the xbox, the duplicated handle always has the same access rigths of the source handle
const ACCESS_MASK DesiredAccess = 0;
const ULONG Attributes = 0;
Options |= (DUPLICATE_SAME_ATTRIBUTES | DUPLICATE_SAME_ACCESS);
// redirect to Win2k/XP
ret = NtDll::NtDuplicateObject(