Jakob Eriksson jakov@vmlinux.org writes:
- /* Windows 98 is a bit broken around these parts, it doesn't return FALSE as it should. */
- /* If the resulting time is about 10000 AD, I consider the result invalid. */
- ret = DosDateTimeToFileTime(0,0,&ft);
- years = ((unsigned)ft.dwHighDateTime * 120) / 24 / 365;
That formula doesn't seem right to me. Could you please explain what you are doing here?