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

Alexandre Julliard julliard at winehq.org
Fri Oct 17 07:25:38 CDT 2008


Module: wine
Branch: master
Commit: 916e47861a94c17aadec26d7033f602e3468c818
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=916e47861a94c17aadec26d7033f602e3468c818

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Oct 16 09:09:37 2008 -0700

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

---

 dlls/crypt32/decode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c
index 4ed2abe..4ebe50a 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)




More information about the wine-cvs mailing list