From 916e47861a94c17aadec26d7033f602e3468c818 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 16 Oct 2008 09:09:37 -0700 Subject: [PATCH] crypt32: Correct last error when no data are passed to CRYPT_AsnDecodeInt. --- dlls/crypt32/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.4.GIT