mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +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)
|
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//#define NDEBUG
|
#define NDEBUG
|
||||||
#define INITGUID
|
#define INITGUID
|
||||||
#include "serenum.h"
|
#include "serenum.h"
|
||||||
|
|
||||||
|
@ -51,9 +51,7 @@ IrpStub(
|
||||||
{
|
{
|
||||||
DPRINT1("Serenum: FDO stub for major function 0x%lx\n",
|
DPRINT1("Serenum: FDO stub for major function 0x%lx\n",
|
||||||
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
|
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
|
||||||
#ifndef NDEBUG
|
ASSERT(FALSE);
|
||||||
DbgBreakPoint();
|
|
||||||
#endif
|
|
||||||
Status = Irp->IoStatus.Status;
|
Status = Irp->IoStatus.Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,9 +72,7 @@ IrpStub(
|
||||||
{
|
{
|
||||||
DPRINT1("Serenum: PDO stub for major function 0x%lx\n",
|
DPRINT1("Serenum: PDO stub for major function 0x%lx\n",
|
||||||
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
|
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
|
||||||
#ifndef NDEBUG
|
ASSERT(FALSE);
|
||||||
DbgBreakPoint();
|
|
||||||
#endif
|
|
||||||
Status = Irp->IoStatus.Status;
|
Status = Irp->IoStatus.Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue