diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9fe94d0ea..33b377d92 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2002-06-26 Corinna Vinschen + + * pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning. + 2002-06-26 Christopher Faylor * dcrt0.cc (_dcrt0): Be more defensive when reserved block is used and diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h index d2dcfcd1a..bab2da863 100644 --- a/winsup/cygwin/pwdgrp.h +++ b/winsup/cygwin/pwdgrp.h @@ -63,7 +63,8 @@ public: : fh (INVALID_HANDLE_VALUE), buf (NULL), lptr (NULL), eptr (NULL) {} virtual ~pwdgrp_read () { - close (); + if (fh != INVALID_HANDLE_VALUE) + CloseHandle (fh); if (buf) free (buf); }