* dtable.cc (dtable::init_std_file_from_handle): Avoid initializing using an

invalid handle.
This commit is contained in:
Christopher Faylor
2001-12-17 19:55:58 +00:00
parent 7b96e69ac5
commit 513a848fe6
2 changed files with 8 additions and 0 deletions

View File

@@ -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