diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c index 4ed2abe9d81..4ebe50a706c 100644 --- a/dlls/crypt32/decode.c +++ b/dlls/crypt32/decode.c @@ -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)