* 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

@ -1,3 +1,8 @@
2001-12-17 Christopher Faylor <cgf@redhat.com>
* dtable.cc (dtable::init_std_file_from_handle): Avoid initializing
using an invalid handle.
2001-12-16 David Billinghurst <David.Billinghurst@riotinto.com>
* include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX.

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