From 7b23f43c5307ab73e527021c557b55f212a78708 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 3 Aug 2016 23:22:16 +0200 Subject: [PATCH] Use CAutoFile for CreateFile handles Signed-off-by: Sven Strickroth --- src/Git/Git.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Git/Git.cpp b/src/Git/Git.cpp index 10609c047..e089eea79 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -276,7 +276,7 @@ static bool IsPowerShell(CString cmd) int CGit::RunAsync(CString cmd, PROCESS_INFORMATION *piOut, HANDLE *hReadOut, HANDLE *hErrReadOut, CString *StdioFile) { CAutoGeneralHandle hRead, hWrite, hReadErr, hWriteErr; - CAutoGeneralHandle hStdioFile; + CAutoFile hStdioFile; SECURITY_ATTRIBUTES sa = { 0 }; sa.nLength = sizeof(SECURITY_ATTRIBUTES); -- 2.11.4.GIT