diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-02-24 15:18:15 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-25 02:00:37 +0100 |
commit | bc6e35d94325f4b18caec7ce0824c5beab95cdd7 (patch) | |
tree | ee49996a353c5f78fc0252adbe68cebb03bd187f /src/corelib | |
parent | 4404345eaacf6be412312c57a450ba7223db8bb3 (diff) | |
download | qt4-tools-bc6e35d94325f4b18caec7ce0824c5beab95cdd7.tar.gz |
Fix a crash in QSystemLocalePrivate::uiLanguages().
Use the correct calling convention. Discovered by the mimetype
test in Qt 5.
Change-Id: I79b97325dd69466885a64c238935107bf14e9a0d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qlocale_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale_win.cpp b/src/corelib/tools/qlocale_win.cpp index c09802879c..5d0b01f041 100644 --- a/src/corelib/tools/qlocale_win.cpp +++ b/src/corelib/tools/qlocale_win.cpp @@ -525,7 +525,7 @@ QVariant QSystemLocalePrivate::toCurrencyString(const QSystemLocale::CurrencyToS QVariant QSystemLocalePrivate::uiLanguages() { if (QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA) { - typedef BOOL (*GetUserPreferredUILanguagesFunc) ( + typedef BOOL (WINAPI *GetUserPreferredUILanguagesFunc) ( DWORD dwFlags, PULONG pulNumLanguages, PWSTR pwszLanguagesBuffer, |