diff --git a/localization.c b/localization.c index 6871a49..bb90576 100644 --- a/localization.c +++ b/localization.c @@ -189,7 +189,7 @@ LocalizedTime(const time_t t, LPTSTR buf, size_t size) /* Convert Unix timestamp to Win32 SYSTEMTIME */ FILETIME lft; SYSTEMTIME st; - LONGLONG tmp = Int32x32To64(t, 10000000) + 116444736000000000; + LONGLONG tmp = (t * 10000000LL) + 116444736000000000LL; FILETIME ft = { .dwLowDateTime = (DWORD) tmp, .dwHighDateTime = tmp >> 32}; FileTimeToLocalFileTime(&ft, &lft); FileTimeToSystemTime(&lft, &st);