Juan Lang juan.lang@gmail.com wrote:
- if (!expirationFound)
- {
SYSTEMTIME st;
/* With no known age, default to 10 minutes until expiration. */
GetSystemTime(&st);
if (st.wMinute < 50)
st.wMinute += 10;
else
{
st.wHour += 1;
st.wMinute -= 50;
}
}SystemTimeToFileTime(&st, &request->expires);
Well, st.wHour could also everflow, it shuild be easier to add an appropriate period to the resulting 64-bit number.