http://bugs.winehq.org/show_bug.cgi?id=16366
--- Comment #14 from Andrew Nguyen arethusa26@gmail.com 2009-07-27 05:52:22 --- Created an attachment (id=22639) --> (http://bugs.winehq.org/attachment.cgi?id=22639) user32: Make GetRawInputDeviceList behave more like a stub.
The Toontown Online client, which uses the Panda 3D engine, is also affected by the issue. I tracked it down to the engine blindly using the value returned for the number of raw input devices from the GetRawInputDeviceList stub, which is zero, in a memory allocation call, causing a crash later in the code. My patch simply has GetRawInputDeviceList return a failure code of -1 for all cases, since we can't return anything meaningful anyway.