From 04f79cdcd2eb96bfaed3c4e67213a870e9ef69f9 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 10 Feb 2019 19:48:14 +0100 Subject: [PATCH] Fix potential access to nullptr Regression of commit ff1670198a7732521ccb7b3010df13af0c33acbc. Signed-off-by: Sven Strickroth --- src/TortoiseProc/GitLogListBase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TortoiseProc/GitLogListBase.cpp b/src/TortoiseProc/GitLogListBase.cpp index c5e947182..2b81ec963 100644 --- a/src/TortoiseProc/GitLogListBase.cpp +++ b/src/TortoiseProc/GitLogListBase.cpp @@ -3195,6 +3195,7 @@ void CGitLogListBase::StartAsyncDiffThread() { InterlockedExchange(&m_AsyncThreadRunning, FALSE); CMessageBox::Show(GetSafeHwnd(), IDS_ERR_THREADSTARTFAILED, IDS_APPNAME, MB_OK | MB_ICONERROR); + return; } m_DiffingThread->m_bAutoDelete = FALSE; m_DiffingThread->ResumeThread(); @@ -3212,6 +3213,7 @@ void CGitLogListBase::StartLoadingThread() InterlockedExchange(&m_bThreadRunning, FALSE); InterlockedExchange(&m_bNoDispUpdates, FALSE); CMessageBox::Show(GetSafeHwnd(), IDS_ERR_THREADSTARTFAILED, IDS_APPNAME, MB_OK | MB_ICONERROR); + return; } m_LoadingThread->m_bAutoDelete = FALSE; m_LoadingThread->ResumeThread(); -- 2.11.4.GIT