summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2011-04-19 13:47:23 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2011-04-19 13:47:23 (GMT)
commit364ce5b7f5379499562b4f4f5a68da7ba068fe1e (patch)
treeff89e62c96c07df6681ab985157c7e23b3c8ca4b /src
parent443d5b17619002cd6bb428198c453271a01accab (diff)
downloadQt-364ce5b7f5379499562b4f4f5a68da7ba068fe1e.zip
Qt-364ce5b7f5379499562b4f4f5a68da7ba068fe1e.tar.gz
Qt-364ce5b7f5379499562b4f4f5a68da7ba068fe1e.tar.bz2
Fixed a crash on Windows XP with mingw in threaded-code
The thread callback doesn't align the stack on 16-bytes on WinXP. That causes a crash when we call SSE code. So now we tell the compiler to force that alignment of the stack. Task: QTBUG-18631 Reviewed-By: Olivier
Diffstat (limited to 'src')
-rw-r--r--src/corelib/thread/qthread_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/thread/qthread_win.cpp b/src/corelib/thread/qthread_win.cpp
index 6b7932b..44e8958 100644
--- a/src/corelib/thread/qthread_win.cpp
+++ b/src/corelib/thread/qthread_win.cpp
@@ -288,7 +288,7 @@ void QThreadPrivate::createEventDispatcher(QThreadData *data)
#ifndef QT_NO_THREAD
-unsigned int __stdcall QThreadPrivate::start(void *arg)
+unsigned int __stdcall QT_ENSURE_STACK_ALIGNED_FOR_SSE QThreadPrivate::start(void *arg)
{
QThread *thr = reinterpret_cast<QThread *>(arg);
QThreadData *data = QThreadData::get2(thr);