Author: dgorbachev
Date: Mon Aug 17 00:52:05 2009
New Revision: 42747
URL:
http://svn.reactos.org/svn/reactos?rev=42747&view=rev
Log:
Add an assertion. See bug #4785.
Modified:
trunk/reactos/ntoskrnl/ps/win32.c
Modified: trunk/reactos/ntoskrnl/ps/win32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/win32.c?rev=42…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/win32.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/win32.c [iso-8859-1] Mon Aug 17 00:52:05 2009
@@ -38,6 +38,9 @@
/* 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;