* dtable.cc (dtable::init_std_file_from_handle): Avoid initializing using an
invalid handle.
This commit is contained in:
@@ -196,6 +196,9 @@ dtable::init_std_file_from_handle (int fd, HANDLE handle, DWORD myaccess)
|
||||
|
||||
first_fd_for_open = 0;
|
||||
|
||||
if (!handle || handle == INVALID_HANDLE_VALUE)
|
||||
return;
|
||||
|
||||
if (__fmode)
|
||||
bin = __fmode;
|
||||
else
|
||||
|
Reference in New Issue
Block a user