瀏覽代碼

BUG: Removed CloseHandle in case of error in DuplicateHandle. According to documentation, DuplicateHandle will close the source handle regardless of error condition.

Brad King 22 年之前
父節點
當前提交
8f8cc16ea3
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      Source/kwsys/ProcessWin32.c

+ 0 - 1
Source/kwsys/ProcessWin32.c

@@ -757,7 +757,6 @@ void kwsysProcess_Execute(kwsysProcess* cp)
                                   DUPLICATE_SAME_ACCESS)))
       {
       kwsysProcessCleanup(cp, 1);
-      CloseHandle(writeEnd);
       return;
       }
     }