Author: ion Date: Tue Feb 20 08:02:52 2007 New Revision: 25856
URL: http://svn.reactos.org/svn/reactos?rev=25856&view=rev Log: - Properly sign-extend a couple more pointers. WinDBG is still complaining about two of them though.
Modified: branches/alex-kd-branch/reactos/ntoskrnl/kd64/kdapi.c
Modified: branches/alex-kd-branch/reactos/ntoskrnl/kd64/kdapi.c URL: http://svn.reactos.org/svn/reactos/branches/alex-kd-branch/reactos/ntoskrnl/... ============================================================================== --- branches/alex-kd-branch/reactos/ntoskrnl/kd64/kdapi.c (original) +++ branches/alex-kd-branch/reactos/ntoskrnl/kd64/kdapi.c Tue Feb 20 08:02:52 2007 @@ -72,8 +72,8 @@ WaitStateChange->ProcessorLevel = KeProcessorLevel; WaitStateChange->Processor = (USHORT)KeGetCurrentPrcb()->Number; WaitStateChange->NumberProcessors = (ULONG)KeNumberProcessors; - WaitStateChange->Thread = (ULONG)KeGetCurrentThread(); - WaitStateChange->ProgramCounter = (ULONG64)Context->Eip; + WaitStateChange->Thread = (ULONG)(LONG_PTR)KeGetCurrentThread(); + WaitStateChange->ProgramCounter = (ULONG)(LONG_PTR)Context->Eip;
/* Zero out the Control Report */ RtlZeroMemory(&WaitStateChange->ControlReport, @@ -835,7 +835,7 @@
/* Fill out load data */ WaitStateChange.u.LoadSymbols.UnloadSymbols = Unload; - WaitStateChange.u.LoadSymbols.BaseOfDll = (ULONG)SymbolInfo->BaseOfDll; + WaitStateChange.u.LoadSymbols.BaseOfDll = (ULONGLONG)(LONG_PTR)SymbolInfo->BaseOfDll; WaitStateChange.u.LoadSymbols.ProcessId = SymbolInfo->ProcessId; WaitStateChange.u.LoadSymbols.CheckSum = SymbolInfo->CheckSum; WaitStateChange.u.LoadSymbols.SizeOfImage = SymbolInfo->SizeOfImage;