[SHELL32] Addendum to r71343: Remove some unneeded checks. The handles are initialize...
authorRobert Naumann <gonzomdx@gmail.com>
Wed, 18 May 2016 10:12:13 +0000 (10:12 +0000)
committerRobert Naumann <gonzomdx@gmail.com>
Wed, 18 May 2016 10:12:13 +0000 (10:12 +0000)
svn path=/trunk/; revision=71351

reactos/dll/win32/shell32/dialogs/folder_options.cpp

index 7aed1ef..3da1c69 100644 (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,