From 1d525cee79a8683d5bcdd07df351c95ececedd7a Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Mon, 17 Sep 2007 15:04:37 -0700 Subject: [PATCH] Return bytes decoded when decoding a sequence --- dlls/crypt32/decode.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c index 814f6b4..6370d81 100644 --- a/dlls/crypt32/decode.c +++ b/dlls/crypt32/decode.c @@ -460,6 +460,8 @@ static BOOL CRYPT_AsnDecodeSequence(DWOR ret = CRYPT_AsnDecodeSequenceItems(dwFlags, items, cItem, ptr, cbEncoded, dwFlags, pvStructInfo, nextData, &cbDecoded); + if (ret && pcbDecoded) + *pcbDecoded = 1 + lenBytes + cbDecoded; } } } -- 1.4.1