Преглед изворни кода

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;
       }
     }