Juan Lang : crypt32: Return bytes decoded when copying DER-encoded bytes.

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


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

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

crypt32: Return bytes decoded when copying DER-encoded bytes.

---

 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 6370d81..78bc365 100644
--- a/dlls/crypt32/decode.c
+++ b/dlls/crypt32/decode.c
@@ -1836,6 +1836,8 @@ static BOOL CRYPT_AsnDecodeCopyBytesInternal(const BYTE *pbEncoded,
             assert(blob->pbData);
             memcpy(blob->pbData, pbEncoded, blob->cbData);
         }
+        if (pcbDecoded)
+            *pcbDecoded = cbEncoded;
     }
     return ret;
 }




More information about the wine-cvs mailing list