From a63306c869c527569efa1201495293483dc30c06 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Mon, 30 Dec 2019 15:39:25 +0500 Subject: [PATCH] UI: Fix SHGetFileInfoW() usage. --- src/ui/util/app/apputil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/util/app/apputil.cpp b/src/ui/util/app/apputil.cpp index 27e98237..4c0d399c 100644 --- a/src/ui/util/app/apputil.cpp +++ b/src/ui/util/app/apputil.cpp @@ -45,7 +45,7 @@ QPixmap extractShellIcon(const QString &appPath) const HRESULT hr = SHGetFileInfoW(appPathW, 0, &info, sizeof(SHFILEINFOW), flags); - if (SUCCEEDED(hr)) { + if (hr != 0) { pixmap = pixmapFromImageList(SHIL_EXTRALARGE, info); }