From 2bd695b42e470f6d5c83fcff322acf308f4dfb61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 22 Jun 2013 01:48:28 +0000 Subject: [PATCH] [NTVDM] Use correctly NDEBUG, and use ReactOS macro: ASSERT, instead of the assert() CRT function. svn path=/branches/ntvdm/; revision=59280 --- subsystems/ntvdm/bios.c | 2 +- subsystems/ntvdm/ntvdm.c | 2 -- subsystems/ntvdm/ntvdm.h | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/subsystems/ntvdm/bios.c b/subsystems/ntvdm/bios.c index 1f82d88fb47..4c45004b107 100644 --- a/subsystems/ntvdm/bios.c +++ b/subsystems/ntvdm/bios.c @@ -91,7 +91,7 @@ static COORD BiosVideoAddressToCoord(ULONG Address) if (!GetConsoleScreenBufferInfo(ConsoleOutput, &ConsoleInfo)) { - assert(0); + ASSERT(FALSE); return Result; } diff --git a/subsystems/ntvdm/ntvdm.c b/subsystems/ntvdm/ntvdm.c index 93448910383..957a9aa4b67 100644 --- a/subsystems/ntvdm/ntvdm.c +++ b/subsystems/ntvdm/ntvdm.c @@ -8,8 +8,6 @@ #include "ntvdm.h" -#define NDEBUG - BOOLEAN VdmRunning = TRUE; LPVOID BaseAddress = NULL; LPCWSTR ExceptionName[] = diff --git a/subsystems/ntvdm/ntvdm.h b/subsystems/ntvdm/ntvdm.h index 04b4ecc6467..ddc4ac5bee5 100644 --- a/subsystems/ntvdm/ntvdm.h +++ b/subsystems/ntvdm/ntvdm.h @@ -12,8 +12,9 @@ #include #include #include -#include #include + +#define NDEBUG #include /* DEFINES ********************************************************************/