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
This commit is contained in:
Hervé Poussineau 2006-10-13 14:31:57 +00:00
parent 25bc0553d1
commit e53f089662

View file

@ -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;
}
}