From 303af157426b4fdc013c325fca4f3a6e0a007861 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 26 Jun 2002 14:59:22 +0000 Subject: * pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/pwdgrp.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'winsup') 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); } -- cgit v1.2.3