* dtable.cc (dtable::init_std_file_from_handle): Avoid initializing using an
invalid handle.
This commit is contained in:
parent
7b96e69ac5
commit
513a848fe6
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue