| Summary: | Crash on Windows when opening second HapticFromJoystick | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Nicholas Hastings <nshastings> |
| Component: | haptic | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Windows 7 | ||
|
Description
Nicholas Hastings
2013-10-18 21:08:05 UTC
This should be fixed by http://hg.libsdl.org/SDL/rev/70f1d63482d0 ... This line... if ((joystick->hwdata->bXInputHaptic == haptic->hwdata->bXInputHaptic) && (haptic->hwdata->userid == joystick->hwdata->userid)) { ...would fail if both devices were different XInput controllers, and then try to use them as bogus pointers through the DirectInput API. If was a goofy piece of logic. --ryan. |