diff --git a/reactos/ntoskrnl/ps/win32.c b/reactos/ntoskrnl/ps/win32.c index 19901dc1356..08d84402105 100644 --- a/reactos/ntoskrnl/ps/win32.c +++ b/reactos/ntoskrnl/ps/win32.c @@ -39,6 +39,9 @@ PsConvertToGuiThread(VOID) /* Validate the previous mode */ if (KeGetPreviousMode() == KernelMode) return STATUS_INVALID_PARAMETER; + /* If no win32k, crashes later */ + ASSERT(PspW32ProcessCallout != NULL); + /* Make sure win32k is here */ if (!PspW32ProcessCallout) return STATUS_ACCESS_DENIED;