[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:
Robert Naumann 2016-05-18 10:12:13 +00:00
parent 0b4cad0a63
commit 59c83ddfe9

View file

@ -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,