summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dinput/win32-joystick.cpp3
1 files changed, 3 insertions, 0 deletions
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)
{