Differences From Artifact [1eab6b89a8a30aee]:
- File
kiutil.cpp
- 2011-02-23 13:30:53 - part of checkin [5128eecc9f] on branch trunk - Copied from private svn repository. (user: kinaba) [annotate]
To Artifact [ccf31ef10ed8e4be]:
- File
kiutil.cpp
- 2017-05-30 13:07:57 - part of checkin [36ad977839] on branch trunk - 1.22: Enlarged the header search range (for SFX skip) for new UNLHA. (user: kinaba) [annotate]
18 SetFileTime( han,pft,NULL,pft ); 18 SetFileTime( han,pft,NULL,pft );
19 19
20 CloseHandle( han ); 20 CloseHandle( han );
21 } 21 }
22 22
23 void kiutil::timeSet( const char* fname, DWORD sec ) 23 void kiutil::timeSet( const char* fname, DWORD sec )
24 { 24 {
25 struct tm* time=gmtime((long*)&sec); | 25 struct tm* time=gmtime((time_t*)&sec);
26 if( time!=NULL ) 26 if( time!=NULL )
27 { 27 {
28 FILETIME ft; 28 FILETIME ft;
29 SYSTEMTIME sys; 29 SYSTEMTIME sys;
30 30
31 sys.wYear = time->tm_year+1900; 31 sys.wYear = time->tm_year+1900;
32 sys.wMonth = time->tm_mon+1; 32 sys.wMonth = time->tm_mon+1;