[ROSAUTOTEST]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 28 Feb 2015 06:56:56 +0000 (06:56 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 28 Feb 2015 06:56:56 +0000 (06:56 +0000)
- Avoid double-close of pipe handles

svn path=/trunk/; revision=66482

rostests/rosautotest/CPipe.cpp

index 8d87723..7dea2b4 100644 (file)
@@ -42,6 +42,7 @@ CPipe::CloseReadPipe()
     if (!m_hReadPipe)
         FATAL("Trying to close already closed read pipe");
     CloseHandle(m_hReadPipe);
+    m_hReadPipe = NULL;
 }
 
 /**
@@ -53,6 +54,7 @@ CPipe::CloseWritePipe()
     if (!m_hWritePipe)
         FATAL("Trying to close already closed write pipe");
     CloseHandle(m_hWritePipe);
+    m_hWritePipe = NULL;
 }
 
 /**