http://bugs.winehq.org/show_bug.cgi?id=3906
------- Additional Comments From willie@froq.net 2005-24-11 15:17 ------- Are you sure? Don't you mean: + if (IsEqualGUID(&IID_IDirectInputDevice8A,riid)) { ^ Else, it would be exactly the same as the previous check (and Wine crashes the same with your patch applied unaltered)...? But with the line changed as pointed out above, it leads to a crash in libc.so.6: --- 8< --- trace:dinput:SysKeyboardAImpl_SetProperty (this=0x6f4cffa0,<guid-0x0001>,0x55bdfb18) trace:dinput:SysKeyboardAImpl_SetProperty (size=20,headersize=16,obj=0,how=0 trace:dinput:SysKeyboardAImpl_SetProperty (buffersize=256) trace:dinput:SysKeyboardAImpl_Acquire (this=0x6f4cffa0) trace:dinput:IDirectInputAImpl_EnumDevices (this=0x6f4cfd38,0x0004 'DIDEVTYPE_JOYSTICK',0x571e3f10,0x55bdfb38,0001) trace:dinput:IDirectInputAImpl_EnumDevices flags: trace:dinput:IDirectInputAImpl_EnumDevices - checking device 0 ('Wine mouse driver') trace:dinput:IDirectInputAImpl_EnumDevices - checking device 1 ('Wine keyboard driver') trace:dinput:IDirectInputAImpl_EnumDevices - checking device 2 ('Wine Linux-input joystick driver') trace:dinput:IDirectInputAImpl_EnumDevices - checking device 3 ('Wine Linux joystick driver') warn:dinput:joydev_enum_deviceA open(/dev/js0,O_RDONLY) failed: No such file or directory trace:dinput:SysMouseAImpl_Unacquire (this=0x6f4cfd50) trace:dinput:SysMouseAImpl_Unacquire warping mouse back to (730 , 817) trace:dinput:SysMouseAImpl_SetCooperativeLevel (this=0x6f4cfd50,0x40022,0x00000006) trace:dinput:SysMouseAImpl_SetCooperativeLevel cooperative level : DISCL_FOREGROUND DISCL_NONEXCLUSIVE trace:dinput:SysMouseAImpl_Acquire (this=0x6f4cfd50) trace:dinput:SysMouseAImpl_Acquire Warping mouse to 512 - 384 wine: Unhandled page fault on read access to 0x00000000 at address 0x5562b57c (thread 000b), starting debugger... --- >8 ---