Commit 33732fac authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

kerberos: Avoid needless conversions between SYSTEMTIME and FILETIME.

parent 96a6053f
......@@ -751,12 +751,11 @@ static void trace_gss_status( OM_uint32 major_status, OM_uint32 minor_status )
static void expirytime_gss_to_sspi( OM_uint32 expirytime, TimeStamp *timestamp )
{
SYSTEMTIME time;
FILETIME filetime;
ULARGE_INTEGER tmp;
GetLocalTime( &time );
SystemTimeToFileTime( &time, &filetime );
GetSystemTimeAsFileTime( &filetime );
FileTimeToLocalFileTime( &filetime, &filetime );
tmp.QuadPart = ((ULONGLONG)filetime.dwLowDateTime | (ULONGLONG)filetime.dwHighDateTime << 32) + expirytime;
timestamp->LowPart = tmp.QuadPart;
timestamp->HighPart = tmp.QuadPart >> 32;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment