ASSERT() was a no-op in win32k, even for debug builds

svn path=/trunk/; revision=9400
This commit is contained in:
Gé van Geldorp 2004-05-15 16:17:59 +00:00
parent 9fa3c615c7
commit 1805ae9248
3 changed files with 21 additions and 8 deletions

View file

@ -1,4 +1,4 @@
/* $Id: error.c,v 1.11 2004/02/28 15:12:49 navaraf Exp $
/* $Id: error.c,v 1.12 2004/05/15 16:17:59 gvg Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -840,11 +840,23 @@ RtlAssert(PVOID FailedAssertion,
ULONG LineNumber,
PCHAR Message)
{
DbgPrint("Assertion \'%s\' failed at %s line %d: %s\n",
(PCHAR)FailedAssertion,
(PCHAR)FileName,
LineNumber,
Message);
if (NULL == Message)
{
DbgPrint("Assertion \'%s\' failed at %s line %d: %s\n",
(PCHAR)FailedAssertion,
(PCHAR)FileName,
LineNumber,
Message);
}
else
{
DbgPrint("Assertion \'%s\' failed at %s line %d\n",
(PCHAR)FailedAssertion,
(PCHAR)FileName,
LineNumber);
}
DbgBreakPoint();
}

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: msgqueue.c,v 1.95 2004/05/14 23:57:32 weiden Exp $
/* $Id: msgqueue.c,v 1.96 2004/05/15 16:17:59 gvg Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -145,7 +145,7 @@ MsqInsertSystemMessage(MSG* Msg)
while (mmov != SystemMessageQueueHead )
{
ULONG prev = mmov ? mmov - 1 : SYSTEM_MESSAGE_QUEUE_SIZE - 1;
ASSERT(mmov >= 0);
ASSERT((LONG) mmov >= 0);
ASSERT(mmov < SYSTEM_MESSAGE_QUEUE_SIZE);
SystemMessageQueue[mmov] = SystemMessageQueue[prev];
mmov = prev;

View file

@ -5,6 +5,7 @@
#define __WIN32K__
#define NTOS_MODE_KERNEL
#include <roscfg.h>
#include <roskrnl.h>
#include <ddk/winddi.h>