mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 04:35:53 +00:00
[CPL][DESK] Use GetModuleHandleW(L"shell32.dll")
CORE-16665
This commit is contained in:
parent
b404824776
commit
f7972f0e6a
1 changed files with 1 additions and 2 deletions
|
@ -321,9 +321,8 @@ AddListViewItems(HWND hwndDlg, PBACKGROUND_DATA pData)
|
||||||
|
|
||||||
/* Load (None) icon */
|
/* Load (None) icon */
|
||||||
#define IDI_SHELL_NO 200
|
#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);
|
hIcon = (HICON)LoadImageW(hShell32, MAKEINTRESOURCEW(IDI_SHELL_NO), IMAGE_ICON, cx, cy, 0);
|
||||||
FreeLibrary(hShell32);
|
|
||||||
#undef IDI_SHELL_NO
|
#undef IDI_SHELL_NO
|
||||||
|
|
||||||
ListView_SetImageList(hwndBackgroundList, himl, LVSIL_SMALL);
|
ListView_SetImageList(hwndBackgroundList, himl, LVSIL_SMALL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue