From e53f089662e70f28986b8b44aecaafed31c5851d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Fri, 13 Oct 2006 14:31:57 +0000 Subject: [PATCH] Disable DbgBreakPoint() in release versions. This lets "copy nul com1:" fail instead of crashing. Next task: fix cmd.exe to let the command succeed svn path=/trunk/; revision=24503 --- reactos/drivers/bus/serenum/serenum.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/reactos/drivers/bus/serenum/serenum.c b/reactos/drivers/bus/serenum/serenum.c index f10caab5734..0fcb4766544 100644 --- a/reactos/drivers/bus/serenum/serenum.c +++ b/reactos/drivers/bus/serenum/serenum.c @@ -7,7 +7,7 @@ * PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.com) */ -//#define NDEBUG +#define NDEBUG #define INITGUID #include "serenum.h" @@ -51,9 +51,7 @@ IrpStub( { DPRINT1("Serenum: FDO stub for major function 0x%lx\n", IoGetCurrentIrpStackLocation(Irp)->MajorFunction); -#ifndef NDEBUG - DbgBreakPoint(); -#endif + ASSERT(FALSE); Status = Irp->IoStatus.Status; } } @@ -74,9 +72,7 @@ IrpStub( { DPRINT1("Serenum: PDO stub for major function 0x%lx\n", IoGetCurrentIrpStackLocation(Irp)->MajorFunction); -#ifndef NDEBUG - DbgBreakPoint(); -#endif + ASSERT(FALSE); Status = Irp->IoStatus.Status; } }