mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:35:23 +00:00
UI: Fix SHGetFileInfoW() usage.
This commit is contained in:
parent
67653c028d
commit
a63306c869
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user