[KDGDB] Fix compilation following commit de81021ba (#4930)

Use cast to be compatible with "public" structure definition.
This commit is contained in:
Hermès Bélusca-Maïto 2022-12-06 00:48:49 +01:00
parent 599ba9cefb
commit b577ac073e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -259,8 +259,8 @@ GetVersionSendHandler(
RtlCopyMemory(&KdVersion, &State->u.GetVersion64, sizeof(KdVersion));
DebuggerDataList = (LIST_ENTRY*)(ULONG_PTR)KdVersion.DebuggerDataList;
KdDebuggerDataBlock = CONTAINING_RECORD(DebuggerDataList->Flink, KDDEBUGGER_DATA64, Header.List);
ProcessListHead = (LIST_ENTRY*)KdDebuggerDataBlock->PsActiveProcessHead.Pointer;
ModuleListHead = (LIST_ENTRY*)KdDebuggerDataBlock->PsLoadedModuleList.Pointer;
ProcessListHead = (LIST_ENTRY*)(ULONG_PTR)KdDebuggerDataBlock->PsActiveProcessHead;
ModuleListHead = (LIST_ENTRY*)(ULONG_PTR)KdDebuggerDataBlock->PsLoadedModuleList;
/* Now we can get the context for the current state */
KdpSendPacketHandler = NULL;