Tomas Hajny 22 anni fa
parent
commit
39ae691859
1 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. 6 3
      rtl/os2/dos.pas

+ 6 - 3
rtl/os2/dos.pas

@@ -208,9 +208,9 @@ begin
                                                                SizeOf (FStat));
                                                                SizeOf (FStat));
   if DosError=0 then
   if DosError=0 then
   begin
   begin
-    Time := FStat.TimeLastWrite + longint (FStat.DateLastWrite) * 256;
+    Time := FStat.TimeLastWrite + longint (FStat.DateLastWrite) shl 16;
     if Time = 0 then
     if Time = 0 then
-      Time := FStat.TimeCreation + longint (FStat.DateCreation) * 256;
+      Time := FStat.TimeCreation + longint (FStat.DateCreation) shl 16;
   end else
   end else
     Time:=0;
     Time:=0;
 end;
 end;
@@ -702,7 +702,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.31  2003-11-01 18:35:12  hajny
+  Revision 1.32  2003-11-02 09:45:32  hajny
+  SetFTime fix
+
+  Revision 1.31  2003/11/01 18:35:12  hajny
     * GetFTime correction for case of no previous write access
     * GetFTime correction for case of no previous write access
 
 
   Revision 1.30  2003/10/25 23:55:22  hajny
   Revision 1.30  2003/10/25 23:55:22  hajny