http://bugs.winehq.org/show_bug.cgi?id=5658
Summary: Crash with VariantChangeType() Product: Wine Version: unspecified Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-ole AssignedTo: wine-bugs@winehq.org ReportedBy: grolgh@gmail.com
VariantChangeType is observed crashing if it gets the same type. It takes three parameters, input, expected type id, and output variant. If you try to convert a VT_BOOL to a VT_BOOL it crashes.
Example program, not minimal:
This program crashes a bug in VariantChangeType()
Download: http://www.batman.no/buzzwine/
Reference Screenshot: http://www.batman.no/buzzclone/pre-v0.3-1.gif
Steps to reproduce: Download entire folder. Unpack Gear.tar.gz into Gear. Start "wine buzz.exe". Press "OK". Click treeview, "Generators". DnD FSM Infector next to "Master". Doubleclick "Infector". Notice how sliders are drawn wrong, and does not work correctly and eventually crashes the program.
Untested example code: VARIANT v; VariantInit(&v); v.vt=VT_BOOL; v.boolValue=FALSE; VARIANT v2; VariantInit(&v2); VariantChangeType(&v, VT_BOOL, &v2);