[SHELL32]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Sat, 18 Oct 2014 10:33:49 +0000 (10:33 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Sat, 18 Oct 2014 10:33:49 +0000 (10:33 +0000)
- fix a copy paste error
CID 1101990

svn path=/trunk/; revision=64799

reactos/dll/win32/shell32/iconcache.cpp

index 713b34b..537787a 100644 (file)
@@ -308,7 +308,7 @@ fail:
     if (NULL != TargetIconInfo.hbmColor) DeleteObject(TargetIconInfo.hbmColor);
     if (NULL != TargetIconInfo.hbmMask) DeleteObject(TargetIconInfo.hbmMask);
     if (NULL != ShortcutIconInfo.hbmColor) DeleteObject(ShortcutIconInfo.hbmColor);
     if (NULL != TargetIconInfo.hbmColor) DeleteObject(TargetIconInfo.hbmColor);
     if (NULL != TargetIconInfo.hbmMask) DeleteObject(TargetIconInfo.hbmMask);
     if (NULL != ShortcutIconInfo.hbmColor) DeleteObject(ShortcutIconInfo.hbmColor);
-    if (NULL != ShortcutIconInfo.hbmMask) DeleteObject(ShortcutIconInfo.hbmColor);
+    if (NULL != ShortcutIconInfo.hbmMask) DeleteObject(ShortcutIconInfo.hbmMask);
     if (NULL != ShortcutIcon) DestroyIcon(ShortcutIcon);
 
     return NULL;
     if (NULL != ShortcutIcon) DestroyIcon(ShortcutIcon);
 
     return NULL;