[EXPLORER] Remove double 'return' statement. Determining whether it should be HTBORDE...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 7 Apr 2018 17:06:04 +0000 (19:06 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 7 Apr 2018 17:06:22 +0000 (19:06 +0200)
Spotted by 'mudhead'. CORE-14528

base/shell/explorer/traywnd.cpp

index a3c1f36..47da09b 100644 (file)
@@ -2205,8 +2205,7 @@ ChangePos:
             pt.x = (SHORT) LOWORD(lParam);
             pt.y = (SHORT) HIWORD(lParam);
 
-            if (PtInRect(&rcClient,
-                pt))
+            if (PtInRect(&rcClient, pt))
             {
                 /* The user is trying to drag the tray window */
                 return HTCAPTION;
@@ -2236,7 +2235,6 @@ ChangePos:
             }
         }
         return HTBORDER;
-        return TRUE;
     }
 
     LRESULT OnMoving(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)