mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 17:32:57 -05:00
sys: oplock testing: DEBUGTEST_EX
This commit is contained in:
@ -122,8 +122,11 @@ VOID FspDebugLogIrp(const char *func, PIRP Irp, NTSTATUS Result);
|
||||
#if DBG
|
||||
#define DEBUGTEST(Percent) \
|
||||
(0 == (fsp_debug & fsp_debug_dt) || DebugRandom() <= (Percent) * 0x7fff / 100)
|
||||
#define DEBUGTEST_EX(C, Percent, Deflt) \
|
||||
((C) ? DEBUGTEST(Percent) : (Deflt))
|
||||
#else
|
||||
#define DEBUGTEST(Percent) (TRUE)
|
||||
#define DEBUGTEST_EX(C, Percent, Deflt) (Deflt)
|
||||
#endif
|
||||
|
||||
/* FSP_ENTER/FSP_LEAVE */
|
||||
|
Reference in New Issue
Block a user