From cf904c2bc4a314625d6dfb7a581d1e1de8e1bada Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 18 Oct 2007 11:14:12 -0700 Subject: [PATCH] crypt32: Use GetSystemTimeAsFileTime rather than GetSystemTime/SystemTimeToFileTime. --- dlls/crypt32/cert.c | 5 +---- dlls/crypt32/crl.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c index dcad7fa2f3..2451973643 100644 --- a/dlls/crypt32/cert.c +++ b/dlls/crypt32/cert.c @@ -1305,10 +1305,7 @@ LONG WINAPI CertVerifyTimeValidity(LPFILETIME pTimeToVerify, if (!pTimeToVerify) { - SYSTEMTIME sysTime; - - GetSystemTime(&sysTime); - SystemTimeToFileTime(&sysTime, &fileTime); + GetSystemTimeAsFileTime(&fileTime); pTimeToVerify = &fileTime; } if ((ret = CompareFileTime(pTimeToVerify, &pCertInfo->NotBefore)) >= 0) diff --git a/dlls/crypt32/crl.c b/dlls/crypt32/crl.c index bc7f73e04d..ada06fc4d8 100644 --- a/dlls/crypt32/crl.c +++ b/dlls/crypt32/crl.c @@ -519,10 +519,7 @@ LONG WINAPI CertVerifyCRLTimeValidity(LPFILETIME pTimeToVerify, if (!pTimeToVerify) { - SYSTEMTIME sysTime; - - GetSystemTime(&sysTime); - SystemTimeToFileTime(&sysTime, &fileTime); + GetSystemTimeAsFileTime(&fileTime); pTimeToVerify = &fileTime; } if ((ret = CompareFileTime(pTimeToVerify, &pCrlInfo->ThisUpdate)) >= 0) -- 2.32.0.93.g670b81a890