Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext: fix calculations in Winstat64

Changeset 6e7112aaeb2b

Parent 99ab50161592

by Adrian Buehlmann

Changes to 2 files · Browse files at 6e7112aaeb2b Showing diff from parent 99ab50161592 Diff from another changeset...

 
28
29
30
31
32
33
 
 
 
34
35
36
 
28
29
30
 
 
 
31
32
33
34
35
36
@@ -28,9 +28,9 @@
  return -1;   FindClose(hfind);   - this->mtime = *(__time64_t*)&data.ftLastWriteTime; - this->size = ((__int64)data.nFileSizeHigh << sizeof(data.nFileSizeHigh)) - | data.nFileSizeLow; + this->mtime = ((__int64)data.ftLastWriteTime.dwHighDateTime << 32) + + data.ftLastWriteTime.dwLowDateTime; + this->size = ((__int64)data.nFileSizeHigh << 32) + data.nFileSizeLow;     return 0;  }
 
19
20
21
22
23
 
 
24
25
26
 
19
20
21
 
 
22
23
24
25
26
@@ -19,8 +19,8 @@
   struct Winstat64  { - __time64_t mtime; - __int64 size; + __int64 mtime; + __int64 size;   int lstat(const char* path);  };