• Arkadiusz Hiler's avatar
    xinput1_3: Hold module reference while the hid thread is running. · 10a0a8ea
    Arkadiusz Hiler authored
    We have no means of stopping the thread from DllMain on
    DLL_PROCESS_DETACH without having a race condition - waiting on the
    thread itself is not an option due to the loader lock.
    
    The best we can do is just never unload the DLL as long as the thread is
    active which is forever.
    
    This fixes crashes in Mighty Switch Force! Collection while controllers
    are unplugged - the game loads and frees xinput in a loop.
    10a0a8ea
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...