Merge pull request #2060 from ergo720/ff_fix
Fix incorrect flags in NtDuplicateObject
This commit is contained in:
commit
10ba282305
|
@ -702,9 +702,10 @@ XBSYSAPI EXPORTNUM(197) xbox::ntstatus_xt NTAPI xbox::NtDuplicateObject
|
||||||
}
|
}
|
||||||
else
|
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 ACCESS_MASK DesiredAccess = 0;
|
||||||
const ULONG Attributes = 0;
|
const ULONG Attributes = 0;
|
||||||
|
Options |= (DUPLICATE_SAME_ATTRIBUTES | DUPLICATE_SAME_ACCESS);
|
||||||
|
|
||||||
// redirect to Win2k/XP
|
// redirect to Win2k/XP
|
||||||
ret = NtDll::NtDuplicateObject(
|
ret = NtDll::NtDuplicateObject(
|
||||||
|
|
Loading…
Reference in New Issue