Address review remark
This commit is contained in:
parent
b86e64f36a
commit
f5ed14d276
|
@ -702,7 +702,10 @@ XBSYSAPI EXPORTNUM(197) xbox::ntstatus_xt NTAPI xbox::NtDuplicateObject
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// On the xbox, the duplicated handle always has the same access rights of the source handle
|
// 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
|
// redirect to Win2k/XP
|
||||||
ret = NtDll::NtDuplicateObject(
|
ret = NtDll::NtDuplicateObject(
|
||||||
|
@ -710,9 +713,9 @@ XBSYSAPI EXPORTNUM(197) xbox::ntstatus_xt NTAPI xbox::NtDuplicateObject
|
||||||
SourceHandle,
|
SourceHandle,
|
||||||
/*TargetProcessHandle=*/g_CurrentProcessHandle,
|
/*TargetProcessHandle=*/g_CurrentProcessHandle,
|
||||||
TargetHandle,
|
TargetHandle,
|
||||||
0,
|
DesiredAccess,
|
||||||
0,
|
Attributes,
|
||||||
(Options | DUPLICATE_SAME_ATTRIBUTES | DUPLICATE_SAME_ACCESS));
|
Options);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret != xbox::status_success)
|
if (ret != xbox::status_success)
|
||||||
|
|
Loading…
Reference in New Issue