Changeset 289 for trunk/src/ufat32/win32.c
- Timestamp:
- Jul 6, 2017, 9:53:56 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/ufat32/win32.c ¶
r282 r289 378 378 void set_datetime(DIRENTRY *pDir) 379 379 { 380 // FAT12/FAT16/FAT32 380 381 SYSTEMTIME datetime; 381 382 … … 394 395 } 395 396 397 398 void set_datetime1(DIRENTRY1 *pDir) 399 { 400 // exFAT 401 SYSTEMTIME datetime; 402 403 GetSystemTime(&datetime); 404 405 pDir->u.File.ulLastModifiedTimestp.year = datetime.wYear - 1980; 406 pDir->u.File.ulLastModifiedTimestp.month = datetime.wMonth; 407 pDir->u.File.ulLastModifiedTimestp.day = datetime.wDay; 408 pDir->u.File.ulLastModifiedTimestp.hour = datetime.wHour; 409 pDir->u.File.ulLastModifiedTimestp.minutes = datetime.wMinute; 410 pDir->u.File.ulLastModifiedTimestp.seconds = datetime.wSecond / 2; 411 412 pDir->u.File.ulCreateTimestp = pDir->u.File.ulLastModifiedTimestp; 413 pDir->u.File.ulLastAccessedTimestp = pDir->u.File.ulLastModifiedTimestp; 414 } 396 415 397 416 char *get_error(USHORT rc)
Note:
See TracChangeset
for help on using the changeset viewer.