From: Tyson Whitehead twhitehead@gmail.com
--- dlls/joy.cpl/dinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/joy.cpl/dinput.c b/dlls/joy.cpl/dinput.c index 68268cbb72c..f090abba3fd 100644 --- a/dlls/joy.cpl/dinput.c +++ b/dlls/joy.cpl/dinput.c @@ -166,7 +166,7 @@ static void set_selected_effect( IDirectInputEffect *effect )
EnterCriticalSection( &state_cs ); if ((previous = effect_selected)) IDirectInputEffect_Release( previous ); - if ((effect_selected = effect)) IDirectInput_AddRef( effect ); + if ((effect_selected = effect)) IDirectInputEffect_AddRef( effect ); LeaveCriticalSection( &state_cs ); }