mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 08:53:01 -05:00
sys: DEBUGTEST_EX macro: fix
This commit is contained in:
parent
851a6145cd
commit
d6d781355f
@ -123,7 +123,7 @@ VOID FspDebugLogIrp(const char *func, PIRP Irp, NTSTATUS Result);
|
|||||||
#define DEBUGTEST(Percent) \
|
#define DEBUGTEST(Percent) \
|
||||||
(0 == (fsp_debug & fsp_debug_dt) || DebugRandom() <= (Percent) * 0x7fff / 100)
|
(0 == (fsp_debug & fsp_debug_dt) || DebugRandom() <= (Percent) * 0x7fff / 100)
|
||||||
#define DEBUGTEST_EX(C, Percent, Deflt) \
|
#define DEBUGTEST_EX(C, Percent, Deflt) \
|
||||||
((C) ? DEBUGTEST(Percent) : (Deflt))
|
(0 != (fsp_debug & fsp_debug_dt) && (C) ? (DebugRandom() <= (Percent) * 0x7fff / 100) : (Deflt))
|
||||||
#else
|
#else
|
||||||
#define DEBUGTEST(Percent) (TRUE)
|
#define DEBUGTEST(Percent) (TRUE)
|
||||||
#define DEBUGTEST_EX(C, Percent, Deflt) (Deflt)
|
#define DEBUGTEST_EX(C, Percent, Deflt) (Deflt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user