kerberos: Avoid needless conversions between SYSTEMTIME and FILETIME.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
96a6053fed
commit
33732facd6
|
@ -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 )
|
static void expirytime_gss_to_sspi( OM_uint32 expirytime, TimeStamp *timestamp )
|
||||||
{
|
{
|
||||||
SYSTEMTIME time;
|
|
||||||
FILETIME filetime;
|
FILETIME filetime;
|
||||||
ULARGE_INTEGER tmp;
|
ULARGE_INTEGER tmp;
|
||||||
|
|
||||||
GetLocalTime( &time );
|
GetSystemTimeAsFileTime( &filetime );
|
||||||
SystemTimeToFileTime( &time, &filetime );
|
FileTimeToLocalFileTime( &filetime, &filetime );
|
||||||
tmp.QuadPart = ((ULONGLONG)filetime.dwLowDateTime | (ULONGLONG)filetime.dwHighDateTime << 32) + expirytime;
|
tmp.QuadPart = ((ULONGLONG)filetime.dwLowDateTime | (ULONGLONG)filetime.dwHighDateTime << 32) + expirytime;
|
||||||
timestamp->LowPart = tmp.QuadPart;
|
timestamp->LowPart = tmp.QuadPart;
|
||||||
timestamp->HighPart = tmp.QuadPart >> 32;
|
timestamp->HighPart = tmp.QuadPart >> 32;
|
||||||
|
|
Loading…
Reference in New Issue