Commit 916e4786 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

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

parent 88a1ecb6
......@@ -3454,7 +3454,7 @@ static BOOL WINAPI CRYPT_AsnDecodeInt(DWORD dwCertEncodingType,
if (!cbEncoded)
{
SetLastError(CRYPT_E_ASN1_CORRUPT);
SetLastError(CRYPT_E_ASN1_EOD);
ret = FALSE;
}
else if (pbEncoded[0] != ASN_INTEGER)
......
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