mirror of
https://github.com/reactos/reactos.git
synced 2025-04-17 19:27:00 +00:00
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:
parent
25bc0553d1
commit
e53f089662
1 changed files with 3 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue