From 5d2d22a218149777be936f91fad9e01ae345e810 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 1 Dec 2016 15:52:49 +0800 Subject: [PATCH] Fix warning C4090. different '__unaligned' qualifiers. --- src/base/utils/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/utils/misc.cpp b/src/base/utils/misc.cpp index 18f06d2d7..bfc1c3747 100644 --- a/src/base/utils/misc.cpp +++ b/src/base/utils/misc.cpp @@ -580,7 +580,7 @@ void Utils::Misc::openFolderSelect(const QString &absolutePath) } #ifdef Q_OS_WIN HRESULT hresult = ::CoInitializeEx(nullptr, COINIT_MULTITHREADED); - ITEMIDLIST *pidl = ::ILCreateFromPathW(reinterpret_cast(Utils::Fs::toNativePath(path).utf16())); + PIDLIST_ABSOLUTE pidl = ::ILCreateFromPathW(reinterpret_cast(Utils::Fs::toNativePath(path).utf16())); if (pidl) { ::SHOpenFolderAndSelectItems(pidl, 0, nullptr, 0); ::ILFree(pidl);