3 Mar
2011
3 Mar
'11
8:05 a.m.
Juan Lang <juan.lang(a)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. -- Dmitry.