https://bugs.winehq.org/show_bug.cgi?id=47321
Bug ID: 47321 Summary: Regression: Painkiller crashes at startup (wined3d_device_create_primary_opengl_context_cs() doesn't check NULL return value from context_acquire()) Product: Wine Version: 4.9 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: o.dierick@piezo-forte.be Distribution: ---
Created attachment 64635 --> https://bugs.winehq.org/attachment.cgi?id=64635 painkiller multiplayer demo wine-4.9 terminal output
Painkiller Multiplayer and Singleplayer demos crash at startup in wined3d_device_create_primary_opengl_context_cs().
This is a regression between wine-4.8 and wine-4.9.
The application triggers context_acquire() to return NULL. The return value is not checked in wined3d_device_create_primary_opengl_context_cs() and so it tries to access NULL pointer and crashes.