dinput: Repair erroneous SetProperty code

Bassi, Gurmail Gurmail.Bassi at mottmac.com
Tue Jun 4 15:38:38 CDT 2013


Applications which reference (This->base.data_format.offsets[i]) before having called SetDataFormat will fail, as this variable will not have been allocated memory yet (by HeapAlloc).


Therefore, SetProperty should use (This->base.data_format.wine_df->rgodf[i].dwOfs) to identify joystick axes instead (this is the structure first populated during joystick initialization).


This appears to resolve Wine bugs 33496 & 33593 in Lord of the Rings Online.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130604/99bb69a6/attachment.txt>


More information about the wine-patches mailing list