[SHELL32] Add transparent icon resource (#6621) CORE-19471
authorOleg Dubinskiy <oleg.dubinskij30@gmail.com>
Thu, 14 Mar 2024 19:58:12 +0000 (20:58 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2024 19:58:12 +0000 (20:58 +0100)
commitc6b86388155a23efe044a9fd0b946bd0252bf35e
tree77d7b92bee3889bc0f594b073e5e95e827ffd1d4
parent2f6b17593f310115e48d5baa7dd16c297024ea7a
[SHELL32] Add transparent icon resource (#6621) CORE-19471

Add transparent 16x16 icon (just small picec of transparent background) as resource and use it for 50, 51, 52, 53 resource IDs.
Define it as IDI_SHELL_NONE_XX for all four IDs appropriately (since the icon displays nothing).
These resources are not used by anything yet, but they are confirmed to exist as resources with 50, 51, 52, 53 IDs in shell32.dll from Windows XP/Server 2003.
This allows to correct the ordering of all other resources those come starting from index 54, and hence it fixes the following icons displayed incorrectly after restoring to default system icon set via Stardock IconPackager 5.1:
- Control Panel folder icon;
- Folder Options item icon in Control Panel;
- My Music special folder in My Documents;
- several File extensions icons (.ini, .txt etc).
The icons are fixed as in the preview of IconPackager app, same in ReactOS itself.
Now only Web Browser item icon on the Desktop remains invalid. All other icons are restored correctly.
CORE-19471
dll/win32/shell32/icon_res.rc
dll/win32/shell32/res/icons/50.ico [new file with mode: 0644]
dll/win32/shell32/shresdef.h