crypt32: Correct last error when no data are passed to CRYPT_AsnDecodeInt.

This commit is contained in:
Juan Lang 2008-10-16 09:09:37 -07:00 committed by Alexandre Julliard
parent 88a1ecb695
commit 916e47861a
1 changed files with 1 additions and 1 deletions

View File

@ -3454,7 +3454,7 @@ static BOOL WINAPI CRYPT_AsnDecodeInt(DWORD dwCertEncodingType,
if (!cbEncoded) if (!cbEncoded)
{ {
SetLastError(CRYPT_E_ASN1_CORRUPT); SetLastError(CRYPT_E_ASN1_EOD);
ret = FALSE; ret = FALSE;
} }
else if (pbEncoded[0] != ASN_INTEGER) else if (pbEncoded[0] != ASN_INTEGER)