Skip to content

Commit

Permalink
fix(process): check for HANDLE_INVALID (lite-xl#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed Aug 19, 2023
1 parent 760271d commit 1952848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1952848

Please sign in to comment.