diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-09-28 19:22:25 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-09-28 19:22:25 +0000 |
commit | dcb091caaf9e00e840520141c1a74fb3f0eeb1d2 (patch) | |
tree | 483b37f8f41a0ce565559a2a5340f2fe5c3c9e57 /winsup/cygwin/dtable.cc | |
parent | 1204c515fe00335920c5707cc136e9562fd7cf38 (diff) | |
download | newlib-dcb091caaf9e00e840520141c1a74fb3f0eeb1d2.zip newlib-dcb091caaf9e00e840520141c1a74fb3f0eeb1d2.tar.gz newlib-dcb091caaf9e00e840520141c1a74fb3f0eeb1d2.tar.bz2 |
Revert erroneous checkin.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 4640444..05d9037 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -334,7 +334,7 @@ dtable::init_std_file_from_handle (int fd, HANDLE handle) } } -#define cnew(name) new ((void *) ccalloc (HEAP_FHANDLER, 1, sizeof (fhandler_union))) name +#define cnew(name) new ((void *) ccalloc (HEAP_FHANDLER, 1, sizeof (name))) name fhandler_base * build_fh_name (const char *name, HANDLE h, unsigned opt, suffix_info *si) { @@ -495,7 +495,7 @@ dtable::dup_worker (fhandler_base *oldfh) { *newfh = *oldfh; newfh->set_io_handle (NULL); - if (oldfh->dup (newfh, hMainProc)) + if (oldfh->dup (newfh)) { cfree (newfh); debug_printf ("oldfh->dup failed"); |