summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pwdgrp.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/pwdgrp.h')
-rw-r--r--winsup/cygwin/pwdgrp.h6
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);
}
};