https://bugs.winehq.org/show_bug.cgi?id=42154
--- Comment #12 from Bruno Jesus 00cpxxx@gmail.com --- Another possibility is still that it expects a function to be hot patchable, I believe the only way to discard that is to make all functions hot patchable and try again. Since I cannot reproduce the issue I can't test this hypothesis.
By the way the functions are: XInputGetCapabilities XInputGetDSoundAudioDeviceGuids XInputGetState XInputSetState
Alistair contacted me by email about a similar issue in Microsoft Flight Simulator X, there using PARENTSRC also fixed the issue. And a different approach that also fixed the bug for him was to LoadLibraryA("xinput1_3.dll") inside DLL_PROCESS_ATTACH from xinput1_3 to ensure the library won't be unloaded.