UI: Fix SHGetFileInfoW() usage.

This commit is contained in:
Nodir Temirkhodjaev 2019-12-30 15:39:25 +05:00
parent 67653c028d
commit a63306c869

View File

@ -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);
}