CloseHandle called on invalid handles
5cript opened this issue · 1 comments
5cript commented
tiny-process-library/process_win.cpp
Lines 110 to 111 in a034812
These handles are invalid here and should not be closed. This will overwrite "GetLastError" with 6 = "Invalid Handle", so reading the error value to see what went wrong becomes impossible.
eidheim commented
Thank you for reporting this. Fixed as you proposed in the above commit.