mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
ASSERT() was a no-op in win32k, even for debug builds
svn path=/trunk/; revision=9400
This commit is contained in:
parent
9fa3c615c7
commit
1805ae9248
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#define __WIN32K__
|
||||
#define NTOS_MODE_KERNEL
|
||||
|
||||
#include <roscfg.h>
|
||||
#include <roskrnl.h>
|
||||
|
||||
#include <ddk/winddi.h>
|
||||
|
|
Loading…
Reference in a new issue