Skip to content

Commit

Permalink
Merge pull request #2060 from ergo720/ff_fix
Browse files Browse the repository at this point in the history
Fix incorrect flags in NtDuplicateObject
  • Loading branch information
LukeUsher committed Dec 8, 2020
2 parents 471f389 + f5ed14d commit 10ba282
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/kernel/exports/EmuKrnlNt.cpp
Expand Up @@ -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(
Expand Down

0 comments on commit 10ba282

Please sign in to comment.