https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1007a2e0f95ac068ae3dfc...
commit 1007a2e0f95ac068ae3dfcabf0e4ab47ac577ca7 Author: Stanislav Motylkov x86corez@gmail.com AuthorDate: Thu May 24 20:11:46 2018 +0300 Commit: Hermès BÉLUSCA - MAÏTO hermes.belusca-maito@reactos.org CommitDate: Thu May 24 22:12:15 2018 +0200
[MSPAINT] Fix call sequence in OnRButtonUp
This fixes unexpected undo action when zooming out with right mouse click.
The call sequence in OnLButtonUp is already correct.
CORE-14539 --- base/applications/mspaint/imgarea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/applications/mspaint/imgarea.cpp b/base/applications/mspaint/imgarea.cpp index 433fc7b04a..74bf84414f 100644 --- a/base/applications/mspaint/imgarea.cpp +++ b/base/applications/mspaint/imgarea.cpp @@ -291,8 +291,8 @@ LRESULT CImgAreaWindow::OnRButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOO } SendMessage(hStatusBar, SB_SETTEXT, 2, (LPARAM) ""); } - ReleaseCapture(); drawing = FALSE; + ReleaseCapture(); return 0; }