Author: rnaumann
Date: Wed May 18 10:12:13 2016
New Revision: 71351
URL:
http://svn.reactos.org/svn/reactos?rev=71351&view=rev
Log:
[SHELL32] Addendum to r71343: Remove some unneeded checks. The handles are initialized as
NULL so they will never be true
Modified:
trunk/reactos/dll/win32/shell32/dialogs/folder_options.cpp
Modified: trunk/reactos/dll/win32/shell32/dialogs/folder_options.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/dialogs/…
==============================================================================
--- trunk/reactos/dll/win32/shell32/dialogs/folder_options.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/dialogs/folder_options.cpp [iso-8859-1] Wed May 18
10:12:13 2016
@@ -99,11 +99,6 @@
if (lpTaskIconName)
{
- if (hTaskIcon)
- {
- DeleteObject(hTaskIcon);
- }
-
hTaskIcon = (HICON)LoadImage(shell32_hInstance,
lpTaskIconName,
IMAGE_ICON,
@@ -132,11 +127,6 @@
if (lpFolderIconName)
{
- if (hFolderIcon)
- {
- DeleteObject(hFolderIcon);
- }
-
hFolderIcon = (HICON)LoadImage(shell32_hInstance,
lpFolderIconName,
IMAGE_ICON,
@@ -165,11 +155,6 @@
if (lpClickIconName)
{
- if (hClickIcon)
- {
- DeleteObject(hClickIcon);
- }
-
hClickIcon = (HICON)LoadImage(shell32_hInstance,
lpClickIconName,
IMAGE_ICON,