From 471a4e360d262cf3de65cb107eab477d7765981d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Oct 2021 22:05:01 +0200 Subject: dinput: disable joystick input on msvc+asan --- dinput/win32-joystick.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dinput/win32-joystick.cpp b/dinput/win32-joystick.cpp index 0f2687fe..3b83a7f1 100644 --- a/dinput/win32-joystick.cpp +++ b/dinput/win32-joystick.cpp @@ -226,6 +226,9 @@ win32_joy_ctx::enum_state::~enum_state() void win32_joy_ctx::enum_state::refresh() { all.clear(); +#ifdef __SANITIZE_ADDRESS__ + return; +#endif if (!di) { -- cgit v1.2.3