- Fix parameter types of NtQuery/SetSystemInformation, ExInitialize(N)PagedLookasideList, KeBugCheckWithTf, IoGetstackLimits
- Use ALIGN_UP_POINTER for a pointer
- Fix pointer to ULONG cast
svn path=/trunk/; revision=35715
NtQuerySystemInformation(
IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
OUT PVOID SystemInformation,
- IN SIZE_T Length,
- OUT PSIZE_T ResultLength
+ IN ULONG Length,
+ OUT PULONG ResultLength
);
NTSYSCALLAPI
NtSetSystemInformation(
IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
IN PVOID SystemInformation,
- IN SIZE_T SystemInformationLength
+ IN ULONG SystemInformationLength
);
NTSYSCALLAPI
IN PALLOCATE_FUNCTION Allocate OPTIONAL,
IN PFREE_FUNCTION Free OPTIONAL,
IN ULONG Flags,
- IN ULONG Size,
+ IN SIZE_T Size,
IN ULONG Tag,
IN USHORT Depth)
{
IN PALLOCATE_FUNCTION Allocate OPTIONAL,
IN PFREE_FUNCTION Free OPTIONAL,
IN ULONG Flags,
- IN ULONG Size,
+ IN SIZE_T Size,
IN ULONG Tag,
IN USHORT Depth)
{
NTAPI
KeBugCheckWithTf(
ULONG BugCheckCode,
- ULONG BugCheckParameter1,
- ULONG BugCheckParameter2,
- ULONG BugCheckParameter3,
- ULONG BugCheckParameter4,
+ ULONG_PTR BugCheckParameter1,
+ ULONG_PTR BugCheckParameter2,
+ ULONG_PTR BugCheckParameter3,
+ ULONG_PTR BugCheckParameter4,
PKTRAP_FRAME Tf
);
}
/* Align the buffer */
- StringBuffer = (PVOID)ALIGN_UP(StringBuffer, WCHAR);
+ StringBuffer = ALIGN_UP_POINTER(StringBuffer, WCHAR);
/* Set the offset for the driver's name to the current buffer */
- ErrorMessage->DriverNameOffset = (ULONG)(StringBuffer -
+ ErrorMessage->DriverNameOffset = (ULONG_PTR)(StringBuffer -
(ULONG_PTR)ErrorMessage);
/* Check how much space we have left for the device string */
*/
VOID
NTAPI
-IoGetStackLimits(OUT PULONG LowLimit,
- OUT PULONG HighLimit)
+IoGetStackLimits(OUT PULONG_PTR LowLimit,
+ OUT PULONG_PTR HighLimit)
{
PKPRCB Prcb = KeGetCurrentPrcb();
ULONG_PTR DpcStack = (ULONG_PTR)(Prcb->DpcStack);
Prcb = KeGetCurrentPrcb();
NewCookie = Prcb->MmPageFaultCount ^ Prcb->InterruptTime ^
SystemTime.u.LowPart ^ SystemTime.u.HighPart ^
- (ULONG)&SystemTime;
+ (ULONG_PTR)&SystemTime;
/* Set the new cookie*/
InterlockedCompareExchange((LONG*)&SharedUserData->Cookie,
#elif defined(_M_ARM)
Thread->StartAddress = (PVOID)ThreadContext->Pc;
Thread->Win32StartAddress = (PVOID)ThreadContext->R0;
+#elif defined(_M_AMD64)
+ Thread->StartAddress = (PVOID)ThreadContext->Rip;
+ Thread->Win32StartAddress = (PVOID)ThreadContext->Rax;
#else
#error Unknown architecture
#endif