Initialize dispatcher header
Some checks failed
Builds / ExectOS (amd64, debug) (push) Successful in 36s
Builds / ExectOS (amd64, release) (push) Successful in 35s
Builds / ExectOS (i686, release) (push) Failing after 31s
Builds / ExectOS (i686, debug) (push) Failing after 33s

This commit is contained in:
2026-06-10 11:46:26 +02:00
parent 830f84ab26
commit f3ae70573c
2 changed files with 13 additions and 5 deletions

View File

@@ -99,14 +99,20 @@ typedef struct _M128
/* Dispatcher object header structure definition */ /* Dispatcher object header structure definition */
typedef struct _DISPATCHER_HEADER typedef struct _DISPATCHER_HEADER
{ {
UCHAR Type;
union union
{ {
struct
{
UCHAR Type;
UCHAR Absolute; UCHAR Absolute;
UCHAR NpxIrql; UCHAR Size;
}; union {
UCHAR Inserted; UCHAR Inserted;
BOOLEAN DebugActive; BOOLEAN DebugActive;
};
};
VOLATILE LONG Lock;
};
LONG SignalState; LONG SignalState;
LIST_ENTRY WaitListHead; LIST_ENTRY WaitListHead;
} DISPATCHER_HEADER, *PDISPATCHER_HEADER; } DISPATCHER_HEADER, *PDISPATCHER_HEADER;

View File

@@ -127,6 +127,8 @@ KE::KProcess::InitializeProcess(IN OUT PKPROCESS Process,
IN BOOLEAN Alignment) IN BOOLEAN Alignment)
{ {
/* Initialize process dispatcher header */ /* Initialize process dispatcher header */
Process->Header.SignalState = 0;
Process->Header.Size = sizeof(KPROCESS) / sizeof(LONG);
Process->Header.Type = ProcessObject; Process->Header.Type = ProcessObject;
/* Initialize process wait list */ /* Initialize process wait list */