mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -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) \
|
||||
(0 == (fsp_debug & fsp_debug_dt) || DebugRandom() <= (Percent) * 0x7fff / 100)
|
||||
#define DEBUGTEST_EX(C, Percent, Deflt) \
|
||||
((C) ? DEBUGTEST(Percent) : (Deflt))
|
||||
(0 != (fsp_debug & fsp_debug_dt) && (C) ? (DebugRandom() <= (Percent) * 0x7fff / 100) : (Deflt))
|
||||
#else
|
||||
#define DEBUGTEST(Percent) (TRUE)
|
||||
#define DEBUGTEST_EX(C, Percent, Deflt) (Deflt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user