mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
sys: improve DEBUGRANDTEST (add fsp_dt control variable)
This commit is contained in:
parent
4d3a169da6
commit
84be6692b8
@ -73,7 +73,9 @@ extern __declspec(selectany) int fsp_bp = 1;
|
||||
|
||||
/* DEBUGRANDTEST */
|
||||
#if DBG
|
||||
#define DEBUGRANDTEST(Percent, Default) (DebugRandom() <= (Percent) * 0x7fff / 100 ? (Default) : !(Default))
|
||||
extern __declspec(selectany) int fsp_dt = 1;
|
||||
#define DEBUGRANDTEST(Percent, Default) \
|
||||
(!fsp_dt || DebugRandom() <= (Percent) * 0x7fff / 100 ? (Default) : !(Default))
|
||||
#else
|
||||
#define DEBUGRANDTEST(Percent, Default) (Default)
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user