Fix intermittent crash with older MinGW releases
authorRobin KAY <komadori@gekkou.co.uk>
Tue, 24 Jun 2014 22:35:22 +0000 (23:35 +0100)
committerRobin KAY <komadori@gekkou.co.uk>
Fri, 27 Jun 2014 19:11:30 +0000 (21:11 +0200)
commit5da2576633bc0d0150a8607a30ab1f66f040bb19
treeeb54865132bee1136f9a4310ee8a98e4fc17f5c2
parent03140436555ad916fbbf77436d567595c614c595
Fix intermittent crash with older MinGW releases

An alternate code-path was previously added to work around a bad
signature for the SHParseDisplayName() function in older and non-w64
versions of the MinGW headers. This code-path incorrectly passed a
single rather double indirect pointer to the third argument of that
function causing it to produce corrupt data and subsequently crash.
This change modifies the code to instead cast a pointer of the correct
type to the incorrect type expected by the headers.

Task-number: QTBUG-39793
Change-Id: I4d65dea4fc38d7e885468cd23434d8570c311fc2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/qml/qml/qqmlengine.cpp