fix(process): check for HANDLE_INVALID (#1475)
This commit is contained in:
1 parent
760271d416
commit
1952848caa
1 file changed
+1
-1
+1
-1
@@ -100,7 +100,7 @@ typedef enum {
|
||||
} filed_e;
|
||||
|
||||
static void close_fd(process_stream_t *handle) {
|
||||
if (*handle) {
|
||||
if (*handle && *handle != HANDLE_INVALID) {
|
||||
#ifdef _WIN32
|
||||
CloseHandle(*handle);
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user