Description
wrong:
TimeFields->Hour = (CSHORT)(SecondsInDay / SECSPERHOUR);
SecondsInDay = SecondsInDay % SECSPERHOUR;
TimeFields->Minute = (CSHORT)(SecondsInDay / SECSPERMIN);
TimeFields->Second = (CSHORT)(SecondsInDay % SECSPERMIN);
right:
TimeFields->Hour = (CSHORT)((SecondsInDay + 1) / SECSPERHOUR);
SecondsInDay = (SecondsInDay + 1) % SECSPERHOUR;
TimeFields->Minute = (CSHORT)((SecondsInDay + 1) / SECSPERMIN);
TimeFields->Second = (CSHORT)((SecondsInDay + 1) % SECSPERMIN);
this error using in viruses under windows for antiemulation tricks (some years)
(checked seconds value past FileTimeToDosDateTime)
thsi error already present in Wine
also I educed ~10 (20?) other errors. planning to send past close this report