mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[SHELL32] Addendum to r71343: Remove some unneeded checks. The handles are initialized as NULL so they will never be true
svn path=/trunk/; revision=71351
This commit is contained in:
parent
0b4cad0a63
commit
59c83ddfe9
|
@ -99,11 +99,6 @@ UpdateGeneralIcons(HWND hDlg)
|
|||
|
||||
if (lpTaskIconName)
|
||||
{
|
||||
if (hTaskIcon)
|
||||
{
|
||||
DeleteObject(hTaskIcon);
|
||||
}
|
||||
|
||||
hTaskIcon = (HICON)LoadImage(shell32_hInstance,
|
||||
lpTaskIconName,
|
||||
IMAGE_ICON,
|
||||
|
@ -132,11 +127,6 @@ UpdateGeneralIcons(HWND hDlg)
|
|||
|
||||
if (lpFolderIconName)
|
||||
{
|
||||
if (hFolderIcon)
|
||||
{
|
||||
DeleteObject(hFolderIcon);
|
||||
}
|
||||
|
||||
hFolderIcon = (HICON)LoadImage(shell32_hInstance,
|
||||
lpFolderIconName,
|
||||
IMAGE_ICON,
|
||||
|
@ -165,11 +155,6 @@ UpdateGeneralIcons(HWND hDlg)
|
|||
|
||||
if (lpClickIconName)
|
||||
{
|
||||
if (hClickIcon)
|
||||
{
|
||||
DeleteObject(hClickIcon);
|
||||
}
|
||||
|
||||
hClickIcon = (HICON)LoadImage(shell32_hInstance,
|
||||
lpClickIconName,
|
||||
IMAGE_ICON,
|
||||
|
|
Loading…
Reference in a new issue