From a3ae8dbae3b92283b399570714eae9f618a39612 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 13 Jun 2017 22:55:14 +0200 Subject: [PATCH] Don't call GetLastError w/o using return value Signed-off-by: Sven Strickroth --- src/TortoiseProc/SyncDlg.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/TortoiseProc/SyncDlg.cpp b/src/TortoiseProc/SyncDlg.cpp index 7653b5d03..24e3eb03e 100644 --- a/src/TortoiseProc/SyncDlg.cpp +++ b/src/TortoiseProc/SyncDlg.cpp @@ -1607,8 +1607,6 @@ void CSyncDlg::OnCancel() return; if (::GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0)) ::WaitForSingleObject(g_Git.m_CurrentGitPi.hProcess, 10000); - else - GetLastError(); CProgressDlg::KillProcessTree(g_Git.m_CurrentGitPi.dwProcessId); } -- 2.11.4.GIT