https://git.reactos.org/?p=reactos.git;a=commitdiff;h=eff4c2138d2ad47cf802f…
commit eff4c2138d2ad47cf802fd0ed4639ced7830fdec
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sat Apr 7 19:06:04 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Apr 7 19:06:22 2018 +0200
[EXPLORER] Remove double 'return' statement. Determining whether it should be
HTBORDER or HTCLIENT is left as an exercise to the reader.
Spotted by 'mudhead'. CORE-14528
---
base/shell/explorer/traywnd.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/base/shell/explorer/traywnd.cpp b/base/shell/explorer/traywnd.cpp
index a3c1f3670f..47da09b558 100644
--- a/base/shell/explorer/traywnd.cpp
+++ b/base/shell/explorer/traywnd.cpp
@@ -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)