diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-09-10 01:57:44 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-09-10 01:57:44 +0400 |
commit | e3a4f8ef6fb90f4e5c2fd0082cf3b40d95fbce07 (patch) | |
tree | 1a75cfe6790b9b312be5ca0c9f7dae26727e4cf0 /winsup/cygwin/pwdgrp.h | |
parent | 3800a9e7d7906a46433c33eb8694b93b1c78bc6f (diff) |
* pwdgrp.h (pwdgrp_check::set_last_modified): Call GetFileTime()
instead of GetFileInformationByHandle().
Diffstat (limited to 'winsup/cygwin/pwdgrp.h')
-rw-r--r-- | winsup/cygwin/pwdgrp.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h index bc27c7bb8..38a7c80f4 100644 --- a/winsup/cygwin/pwdgrp.h +++ b/winsup/cygwin/pwdgrp.h @@ -49,9 +49,7 @@ public: if (!file_w32[0]) strcpy (file_w32, cygheap->fdtab[fileno (f)]->get_win32_name ()); - BY_HANDLE_FILE_INFORMATION inf; - if (GetFileInformationByHandle (cygheap->fdtab[fileno (f)]->get_handle (), - &inf)) - last_modified = inf.ftLastWriteTime; + GetFileTime (cygheap->fdtab[fileno (f)]->get_handle (), + NULL, NULL, &last_modified); } }; |