I see that tm->tm_usub is negative, there seems to be overflows between LARGE_INTEGER and int variables.