NtCreateTimer must convert object attributes too

This commit is contained in:
PatrickvL 2017-01-01 00:15:07 +01:00
parent bebcff71e8
commit 49969ea47d
1 changed files with 3 additions and 2 deletions

View File

@ -409,7 +409,8 @@ XBSYSAPI EXPORTNUM(194) xboxkrnl::NTSTATUS NTAPI xboxkrnl::NtCreateTimer
// TODO : Is this the correct ACCESS_MASK? :
const ACCESS_MASK DesiredAccess = TIMER_ALL_ACCESS;
// TODO : Call CxbxObjectAttributesToNT on ObjectAttributes?
NativeObjectAttributes nativeObjectAttributes;
CxbxObjectAttributesToNT(ObjectAttributes, nativeObjectAttributes, "NtCreateTimer");
// redirect to Windows NT
// TODO : Untested
@ -417,7 +418,7 @@ XBSYSAPI EXPORTNUM(194) xboxkrnl::NTSTATUS NTAPI xboxkrnl::NtCreateTimer
(
/*OUT*/TimerHandle,
DesiredAccess,
(NtDll::POBJECT_ATTRIBUTES)ObjectAttributes,
(NtDll::POBJECT_ATTRIBUTES)&nativeObjectAttributes,
(NtDll::TIMER_TYPE)TimerType
);