update for HEAD-2003021201
[reactos.git] / lib / msvcrt / sys_stat / futime.c
index b308d08..399902c 100644 (file)
@@ -6,38 +6,35 @@
 #include <msvcrt/errno.h>
 #include <msvcrt/internal/file.h>
 
+
 int _futime (int nHandle, struct _utimbuf *pTimes)
 {
   FILETIME  LastAccessTime;
   FILETIME  LastWriteTime;
 
   // check for stdin / stdout  handles ??
-  if (nHandle == -1)
-    {
+  if (nHandle == -1) {
       __set_errno(EBADF);
       return -1;
-    }
+  }
 
-  if (pTimes == NULL)
-    {
+  if (pTimes == NULL) {
       pTimes = alloca(sizeof(struct _utimbuf));
       time(&pTimes->actime);
       time(&pTimes->modtime);
-    }
+  }
 
-  if (pTimes->actime < pTimes->modtime)
-    {
+  if (pTimes->actime < pTimes->modtime) {
       __set_errno(EINVAL);
       return -1;
-    }
+  }
 
   UnixTimeToFileTime(pTimes->actime,&LastAccessTime,0);
   UnixTimeToFileTime(pTimes->modtime,&LastWriteTime,0);
-  if (!SetFileTime(_get_osfhandle(nHandle),NULL, &LastAccessTime, &LastWriteTime))
-    {
+  if (!SetFileTime(_get_osfhandle(nHandle),NULL, &LastAccessTime, &LastWriteTime)) {
       __set_errno(EBADF);
       return -1;
-    }
+  }
 
   return 0;
 }