DRIVER_VERIFIER_DETECTED _VIOLATION in Windows 10+

Fix DRIVER_VERIFIER_DETECTED_VIOLATION