Commit cf904c2b authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Use GetSystemTimeAsFileTime rather than GetSystemTime/SystemTimeToFileTime.

parent abc2aec8
...@@ -1305,10 +1305,7 @@ LONG WINAPI CertVerifyTimeValidity(LPFILETIME pTimeToVerify, ...@@ -1305,10 +1305,7 @@ LONG WINAPI CertVerifyTimeValidity(LPFILETIME pTimeToVerify,
if (!pTimeToVerify) if (!pTimeToVerify)
{ {
SYSTEMTIME sysTime; GetSystemTimeAsFileTime(&fileTime);
GetSystemTime(&sysTime);
SystemTimeToFileTime(&sysTime, &fileTime);
pTimeToVerify = &fileTime; pTimeToVerify = &fileTime;
} }
if ((ret = CompareFileTime(pTimeToVerify, &pCertInfo->NotBefore)) >= 0) if ((ret = CompareFileTime(pTimeToVerify, &pCertInfo->NotBefore)) >= 0)
......
...@@ -519,10 +519,7 @@ LONG WINAPI CertVerifyCRLTimeValidity(LPFILETIME pTimeToVerify, ...@@ -519,10 +519,7 @@ LONG WINAPI CertVerifyCRLTimeValidity(LPFILETIME pTimeToVerify,
if (!pTimeToVerify) if (!pTimeToVerify)
{ {
SYSTEMTIME sysTime; GetSystemTimeAsFileTime(&fileTime);
GetSystemTime(&sysTime);
SystemTimeToFileTime(&sysTime, &fileTime);
pTimeToVerify = &fileTime; pTimeToVerify = &fileTime;
} }
if ((ret = CompareFileTime(pTimeToVerify, &pCrlInfo->ThisUpdate)) >= 0) if ((ret = CompareFileTime(pTimeToVerify, &pCrlInfo->ThisUpdate)) >= 0)
......
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