mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 12:24:48 +00:00
- Fixed the month of the date on the image.
- Used the last write time for the time value on the image. svn path=/trunk/; revision=7612
This commit is contained in:
parent
a07bc80d2e
commit
1057df8763
1 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: cdmake.c,v 1.9 2003/11/19 05:43:14 vizzini Exp $ */
|
/* $Id: cdmake.c,v 1.10 2004/01/13 19:25:03 hbirr Exp $ */
|
||||||
/* CD-ROM Maker
|
/* CD-ROM Maker
|
||||||
by Philip J. Erdelsky
|
by Philip J. Erdelsky
|
||||||
pje@acm.org
|
pje@acm.org
|
||||||
|
@ -426,7 +426,7 @@ static void convert_date_and_time(PDATE_AND_TIME dt, time_t *time)
|
||||||
dt->minute = timedef->tm_min;
|
dt->minute = timedef->tm_min;
|
||||||
dt->hour = timedef->tm_hour;
|
dt->hour = timedef->tm_hour;
|
||||||
dt->day = timedef->tm_mday;
|
dt->day = timedef->tm_mday;
|
||||||
dt->month = timedef->tm_mon;
|
dt->month = timedef->tm_mon + 1;
|
||||||
dt->year = timedef->tm_year + 1900;
|
dt->year = timedef->tm_year + 1900;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,7 +536,7 @@ new_directory_record (struct _finddata_t *f,
|
||||||
d->parent = parent;
|
d->parent = parent;
|
||||||
parse_filename_into_dirrecord ( f->name, d );
|
parse_filename_into_dirrecord ( f->name, d );
|
||||||
|
|
||||||
convert_date_and_time(&d->date_and_time, &f->time_create);
|
convert_date_and_time(&d->date_and_time, &f->time_write);
|
||||||
if (f->attrib & _A_SUBDIR)
|
if (f->attrib & _A_SUBDIR)
|
||||||
{
|
{
|
||||||
if (d->extension[0] != 0)
|
if (d->extension[0] != 0)
|
||||||
|
@ -672,7 +672,7 @@ make_directory_records (PDIR_RECORD d)
|
||||||
{
|
{
|
||||||
if (strcmp(f.name, DIRECTORY_TIMESTAMP) == 0)
|
if (strcmp(f.name, DIRECTORY_TIMESTAMP) == 0)
|
||||||
{
|
{
|
||||||
convert_date_and_time(&d->date_and_time, &f.time_create);
|
convert_date_and_time(&d->date_and_time, &f.time_write);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue