|
| 1 | +diff -dur old/qtbase/src/plugins/platforms/windows/qwindowscontext.h new/qtbase/src/plugins/platforms/windows/qwindowscontext.h |
| 2 | +--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.h 2015-06-29 22:04:40.000000000 +0200 |
| 3 | ++++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.h 2015-11-01 12:55:59.751234846 +0100 |
| 4 | +@@ -124,10 +124,18 @@ |
| 5 | + inline void init(); |
| 6 | + |
| 7 | + typedef HRESULT (WINAPI *SHCreateItemFromParsingName)(PCWSTR, IBindCtx *, const GUID&, void **); |
| 8 | ++#if defined(Q_CC_MINGW) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3) |
| 9 | ++ typedef HRESULT (WINAPI *SHGetKnownFolderIDList)(const GUID &, DWORD, HANDLE, ITEMIDLIST **); |
| 10 | ++#else |
| 11 | + typedef HRESULT (WINAPI *SHGetKnownFolderIDList)(const GUID &, DWORD, HANDLE, PIDLIST_ABSOLUTE *); |
| 12 | ++#endif |
| 13 | + typedef HRESULT (WINAPI *SHGetStockIconInfo)(int , int , _SHSTOCKICONINFO *); |
| 14 | + typedef HRESULT (WINAPI *SHGetImageList)(int, REFIID , void **); |
| 15 | ++#if defined(Q_CC_MINGW) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3) |
| 16 | ++ typedef HRESULT (WINAPI *SHCreateItemFromIDList)(const ITEMIDLIST *, REFIID, void **); |
| 17 | ++#else |
| 18 | + typedef HRESULT (WINAPI *SHCreateItemFromIDList)(PCIDLIST_ABSOLUTE, REFIID, void **); |
| 19 | ++#endif |
| 20 | + |
| 21 | + SHCreateItemFromParsingName sHCreateItemFromParsingName; |
| 22 | + SHGetKnownFolderIDList sHGetKnownFolderIDList; |
| 23 | +diff -dur old/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp new/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp |
| 24 | +--- old/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp 2015-06-29 22:04:40.000000000 +0200 |
| 25 | ++++ new/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp 2015-11-01 13:41:09.503149772 +0100 |
| 26 | +@@ -1008,7 +1008,11 @@ |
| 27 | + qWarning() << __FUNCTION__ << ": Invalid CLSID: " << url.path(); |
| 28 | + return Q_NULLPTR; |
| 29 | + } |
| 30 | ++#if defined(Q_CC_MINGW) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3) |
| 31 | ++ ITEMIDLIST *idList; |
| 32 | ++#else |
| 33 | + PIDLIST_ABSOLUTE idList; |
| 34 | ++#endif |
| 35 | + HRESULT hr = QWindowsContext::shell32dll.sHGetKnownFolderIDList(uuid, 0, 0, &idList); |
| 36 | + if (FAILED(hr)) { |
| 37 | + qErrnoWarning("%s: SHGetKnownFolderIDList(%s)) failed", __FUNCTION__, qPrintable(url.toString())); |
0 commit comments