Fix crash in MinGW when initializing font database
Make sure that stacks are properly aligned so that we don't crash in SSE2 code (as used in QString). Task-number: QTBUG-36807 Change-Id: I765c1972fbb0a4b0c2dc5e4465e1d19e00b3322b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
0b700fb6f9
commit
2b66a37a3e
@ -933,8 +933,8 @@ static bool addFontToDatabase(const QString &familyName, uchar charSet,
|
||||
return true;
|
||||
}
|
||||
|
||||
static int CALLBACK storeFont(ENUMLOGFONTEX* f, NEWTEXTMETRICEX *textmetric,
|
||||
int type, LPARAM namesSetIn)
|
||||
static int QT_ENSURE_STACK_ALIGNED_FOR_SSE CALLBACK
|
||||
storeFont(ENUMLOGFONTEX* f, NEWTEXTMETRICEX *textmetric, int type, LPARAM namesSetIn)
|
||||
{
|
||||
typedef QSet<QString> StringSet;
|
||||
const QString familyName = QString::fromWCharArray(f->elfLogFont.lfFaceName);
|
||||
|
Loading…
Reference in New Issue
Block a user