https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f7972f0e6a08a4d1f2e23…
commit f7972f0e6a08a4d1f2e23a81223ba588056c0a60
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Jan 28 22:24:30 2020 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Tue Jan 28 22:24:30 2020 +0900
[CPL][DESK] Use GetModuleHandleW(L"shell32.dll")
CORE-16665
---
dll/cpl/desk/background.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dll/cpl/desk/background.c b/dll/cpl/desk/background.c
index babc006c3f5..878b2f64bc1 100644
--- a/dll/cpl/desk/background.c
+++ b/dll/cpl/desk/background.c
@@ -321,9 +321,8 @@ AddListViewItems(HWND hwndDlg, PBACKGROUND_DATA pData)
/* Load (None) icon */
#define IDI_SHELL_NO 200
- hShell32 = LoadLibraryEx(L"shell32", NULL, LOAD_LIBRARY_AS_DATAFILE);
+ hShell32 = GetModuleHandleW(L"shell32.dll");
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);