crypt32: Fix a typo caught by coverity.

This commit is contained in:
Juan Lang 2006-04-10 21:05:55 -07:00 committed by Alexandre Julliard
parent 5d5a380e9e
commit 95859a1d6a
1 changed files with 5 additions and 4 deletions

View File

@ -737,8 +737,8 @@ static void CertContext_SetKeyProvInfo(PCCERT_CONTEXT context,
if (szContainer) if (szContainer)
{ {
ret = CryptGetProvParam(hProv, PP_CONTAINER, (BYTE *)szContainer, ret = CryptGetProvParam(hProv, PP_CONTAINER,
&size, 0); (BYTE *)szContainer, &size, 0);
if (ret) if (ret)
{ {
len = MultiByteToWideChar(CP_ACP, 0, szContainer, -1, len = MultiByteToWideChar(CP_ACP, 0, szContainer, -1,
@ -761,7 +761,8 @@ static void CertContext_SetKeyProvInfo(PCCERT_CONTEXT context,
if (szProvider) if (szProvider)
{ {
ret = CryptGetProvParam(hProv, PP_NAME, (BYTE *)szProvider, &size, 0); ret = CryptGetProvParam(hProv, PP_NAME, (BYTE *)szProvider,
&size, 0);
if (ret) if (ret)
{ {
len = MultiByteToWideChar(CP_ACP, 0, szProvider, -1, len = MultiByteToWideChar(CP_ACP, 0, szProvider, -1,
@ -889,7 +890,7 @@ static void CRYPT_MakeCertInfo(PCERT_INFO info,
else else
GetSystemTimeAsFileTime(&info->NotBefore); GetSystemTimeAsFileTime(&info->NotBefore);
if (pEndTime) if (pEndTime)
SystemTimeToFileTime(pStartTime, &info->NotBefore); SystemTimeToFileTime(pStartTime, &info->NotAfter);
else else
{ {
SYSTEMTIME endTime; SYSTEMTIME endTime;