https://bugs.winehq.org/show_bug.cgi?id=39665
Bug ID: 39665 Summary: dinput: MotoGP 3 demo fails to accept key presses to control the driver. Product: Wine Version: 1.8-rc1 Hardware: x86 URL: https://appdb.winehq.org/objectManager.php?sClass=vers ion&iId=6934 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput Assignee: wine-bugs@winehq.org Reporter: bernhardu@vr-web.de Distribution: Debian
The game calls SetCooperativeLevel twice. First with an invalid hwnd (but not NULL) and later with the real hwnd. Unfortunately the first call succeeded and saved the invalid one in the device. Both calls with flag DISCL_FOREGROUND.
Later calls to Acquire are failing because saved (invalid) hwnd is not the foreground window.
trace:dinput:IDirectInputDevice2WImpl_SetCooperativeLevel (0x1a63d00) 0x400000,0x00000005 trace:dinput:IDirectInputDevice2WImpl_SetCooperativeLevel (0x1a66218) 0x10072,0x00000016
https://bugs.winehq.org/show_bug.cgi?id=39665
--- Comment #1 from Bernhard Übelacker bernhardu@vr-web.de --- Created attachment 52883 --> https://bugs.winehq.org/attachment.cgi?id=52883 dinput: Fail in SetCooperativeLevel on invalid hwnd.
Testbot run for attached patch: https://testbot.winehq.org/JobDetails.pl?Key=18493
The game is playable with wine-1.8-rc1 with this patch applied.
Should this patch be sent to wine-patches while in code freeze?
https://bugs.winehq.org/show_bug.cgi?id=39665
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de, | |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=39665
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #2 from Vijay Kamuju infyquest@gmail.com --- send to wine-patches@winehq.org for inclusion and review
https://bugs.winehq.org/show_bug.cgi?id=39665
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |dd08ef4063bdf97a80441b88e41 | |b3d5eb25cf158 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com --- Patch commited http://source.winehq.org/git/wine.git/?a=commit;h=dd08ef4063bdf97a80441b88e4...
https://bugs.winehq.org/show_bug.cgi?id=39665
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.8-rc2.