http://bugs.winehq.org/show_bug.cgi?id=36506
--- Comment #11 from Anastasius Focht focht@gmx.net --- Hello Eike,
--- quote --- and in fact, returning anything else could also send calling code down a bad path --- quote ---
you patch might indeed turn to wrong code paths for non-nvidia. There is code following the call that specifically checks for certain vendors.
It's better to return nothing, just avoiding the crash. This worked a long time ago for multiple broken apps until Alexandre removed it (by accident I think).
The game engine already got the graphics adapter/specs before this point (see log files and +debugstr channel).
The problem is that many people mindlessly pick up patches floating around and build their own Wine versions/wrappers without understanding what it is about and possible side-effects. Then new bug reports appear in Bugzilla where one wastes time just to figure out they've applied some "custom" patches/hacks, making the report invalid.
Regards