--- Python-2.7.8/Modules/posixmodule.c.orig 2014-06-30 05:05:43.000000000 +0300 +++ Python-2.7.8/Modules/posixmodule.c 2015-04-10 16:57:21.942700800 +0300 @@ -1004,8 +1004,12 @@ since it might not be aligned properly */ __int64 in; memcpy(&in, in_ptr, sizeof(in)); - *nsec_out = (int)(in % 10000000) * 100; /* FILETIME is in units of 100 nsec. */ - *time_out = Py_SAFE_DOWNCAST((in / 10000000) - secs_between_epochs, __int64, time_t); + if (in) { + *nsec_out = (int)(in % 10000000) * 100; /* FILETIME is in units of 100 nsec. */ + *time_out = Py_SAFE_DOWNCAST((in / 10000000) - secs_between_epochs, __int64, time_t); + } else { + *time_out = *nsec_out = 0; + } } static void