Add an assertion. See bug #4785.

svn path=/trunk/; revision=42747
This commit is contained in:
Dmitry Gorbachev 2009-08-16 22:52:05 +00:00
parent 46af179093
commit 39980608f8

View file

@ -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;