Juan Lang : crypt32: Return bytes decoded when decoding an alt name entry.

Alexandre Julliard julliard at winehq.org
Tue Sep 18 05:31:17 CDT 2007


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Mon Sep 17 15:06:27 2007 -0700

crypt32: Return bytes decoded when decoding an alt name entry.

---

 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 78bc365..d684887 100644
--- a/dlls/crypt32/decode.c
+++ b/dlls/crypt32/decode.c
@@ -2232,6 +2232,8 @@ static BOOL CRYPT_AsnDecodeAltNameEntry(const BYTE *pbEncoded, DWORD cbEncoded,
         }
         if (ret)
         {
+            if (pcbDecoded)
+                *pcbDecoded = 1 + lenBytes + dataLen;
             if (!entry)
                 *pcbStructInfo = bytesNeeded;
             else if (*pcbStructInfo < bytesNeeded)




More information about the wine-cvs mailing list