https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e2c408f717b140ffb8159…
commit e2c408f717b140ffb81596fc57ed23abb2884fc3
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Jan 28 14:19:13 2020 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Tue Jan 28 14:19:13 2020 +0900
[CPL][DESK] Don't use magic number (IDI_SHELL_NO)
---
dll/cpl/desk/background.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dll/cpl/desk/background.c b/dll/cpl/desk/background.c
index 34a42d27c08..babc006c3f5 100644
--- a/dll/cpl/desk/background.c
+++ b/dll/cpl/desk/background.c
@@ -320,9 +320,11 @@ AddListViewItems(HWND hwndDlg, PBACKGROUND_DATA pData)
himl = ImageList_Create(cx, cy, ILC_COLOR32 | ILC_MASK, 0, 0);
/* Load (None) icon */
+#define IDI_SHELL_NO 200
hShell32 = LoadLibraryEx(L"shell32", NULL, LOAD_LIBRARY_AS_DATAFILE);
- hIcon = (HICON)LoadImageW(hShell32, MAKEINTRESOURCEW(200), IMAGE_ICON, cx, cy, 0);
+ hIcon = (HICON)LoadImageW(hShell32, MAKEINTRESOURCEW(IDI_SHELL_NO), IMAGE_ICON, cx,
cy, 0);
FreeLibrary(hShell32);
+#undef IDI_SHELL_NO
ListView_SetImageList(hwndBackgroundList, himl, LVSIL_SMALL);