* pwdgrp.h (pwdgrp_check::set_last_modified): Call GetFileTime()

instead of GetFileInformationByHandle().
This commit is contained in:
Corinna Vinschen
2001-09-09 21:57:44 +00:00
parent 3800a9e7d7
commit e3a4f8ef6f
2 changed files with 7 additions and 4 deletions

View File

@@ -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);
}
};