mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +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
3 changed files with 21 additions and 8 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -840,11 +840,23 @@ RtlAssert(PVOID FailedAssertion,
|
||||||
ULONG LineNumber,
|
ULONG LineNumber,
|
||||||
PCHAR Message)
|
PCHAR Message)
|
||||||
{
|
{
|
||||||
|
if (NULL == Message)
|
||||||
|
{
|
||||||
DbgPrint("Assertion \'%s\' failed at %s line %d: %s\n",
|
DbgPrint("Assertion \'%s\' failed at %s line %d: %s\n",
|
||||||
(PCHAR)FailedAssertion,
|
(PCHAR)FailedAssertion,
|
||||||
(PCHAR)FileName,
|
(PCHAR)FileName,
|
||||||
LineNumber,
|
LineNumber,
|
||||||
Message);
|
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
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -145,7 +145,7 @@ MsqInsertSystemMessage(MSG* Msg)
|
||||||
while (mmov != SystemMessageQueueHead )
|
while (mmov != SystemMessageQueueHead )
|
||||||
{
|
{
|
||||||
ULONG prev = mmov ? mmov - 1 : SYSTEM_MESSAGE_QUEUE_SIZE - 1;
|
ULONG prev = mmov ? mmov - 1 : SYSTEM_MESSAGE_QUEUE_SIZE - 1;
|
||||||
ASSERT(mmov >= 0);
|
ASSERT((LONG) mmov >= 0);
|
||||||
ASSERT(mmov < SYSTEM_MESSAGE_QUEUE_SIZE);
|
ASSERT(mmov < SYSTEM_MESSAGE_QUEUE_SIZE);
|
||||||
SystemMessageQueue[mmov] = SystemMessageQueue[prev];
|
SystemMessageQueue[mmov] = SystemMessageQueue[prev];
|
||||||
mmov = prev;
|
mmov = prev;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#define __WIN32K__
|
#define __WIN32K__
|
||||||
#define NTOS_MODE_KERNEL
|
#define NTOS_MODE_KERNEL
|
||||||
|
|
||||||
|
#include <roscfg.h>
|
||||||
#include <roskrnl.h>
|
#include <roskrnl.h>
|
||||||
|
|
||||||
#include <ddk/winddi.h>
|
#include <ddk/winddi.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue