Skip to content

Commit

Permalink
Fix incorrect icons (#3)
Browse files Browse the repository at this point in the history
Fix incorrect icons due to incorrect masking since sfi.iIcon might also contain an overlay index in its upper 8 bits.
  • Loading branch information
oviradoi authored and kobilutil committed Feb 26, 2017
1 parent 7e729fc commit 48a2811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Explorer/src/Explorer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ void ExtractIcons(LPCTSTR currentPath, LPCTSTR volumeName, eDevType type,
::DestroyIcon(sfi.hIcon);
}

*piIconNormal = sfi.iIcon & 0x000000ff;
*piIconNormal = sfi.iIcon & 0x00ffffff;
if (piIconOverlayed != NULL)
*piIconOverlayed = sfi.iIcon >> 24;

Expand Down

0 comments on commit 48a2811

Please sign in to comment.