OSDN Git Service

* pwdgrp.h (pwdgrp_check::set_last_modified): Call GetFileTime()
authorcorinna <corinna>
Sun, 9 Sep 2001 21:57:44 +0000 (21:57 +0000)
committercorinna <corinna>
Sun, 9 Sep 2001 21:57:44 +0000 (21:57 +0000)
instead of GetFileInformationByHandle().

winsup/cygwin/ChangeLog
winsup/cygwin/pwdgrp.h

index 22ae600..b24cb26 100644 (file)
@@ -1,3 +1,8 @@
+Sun Sep  9 23:09:00 2001  Corinna Vinschen <corinna@vinschen.de>
+
+       * pwdgrp.h (pwdgrp_check::set_last_modified): Call GetFileTime()
+       instead of GetFileInformationByHandle().
+
 Sun Sep  9 15:59:53 2001  Christopher Faylor <cgf@cygnus.com>
 
        * heap.h (inheap): Rewrite macro to accomodate removal of brk macros
index bc27c7b..38a7c80 100644 (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);
     }
 };