mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +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
|
@ -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