mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[RAPPS] Fix item icons (#5896)
Based on KRosUser's rapps_v2.patch. ExtractIconW can return (HICON)1. We check this invalid value. CORE-19317
This commit is contained in:
parent
97bf53eeb8
commit
c6c7fc1182
1 changed files with 2 additions and 1 deletions
|
@ -1299,7 +1299,8 @@ CAppsListView::AddApplication(CAppInfo *AppInfo, BOOL InitialCheckState)
|
|||
hIcon = ExtractIconW(hInst, szIconPath.GetString(), 0);
|
||||
}
|
||||
|
||||
if (!hIcon)
|
||||
/* Use the default icon if none were found in the file, or if it is not supported (returned 1) */
|
||||
if (!hIcon || (hIcon == (HICON)1))
|
||||
{
|
||||
/* Load default icon */
|
||||
hIcon = LoadIconW(hInst, MAKEINTRESOURCEW(IDI_MAIN));
|
||||
|
|
Loading…
Reference in a new issue