Juan Lang : crypt32: Correct GET_LEN_BYTES for the indefinite-length form.

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


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

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

crypt32: Correct GET_LEN_BYTES for the indefinite-length form.

---

 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 9d4c5c8..ef95a34 100644
--- a/dlls/crypt32/decode.c
+++ b/dlls/crypt32/decode.c
@@ -124,7 +124,7 @@ static BOOL WINAPI CRYPT_AsnDecodeUnsignedIntegerInternal(
  void *pvStructInfo, DWORD *pcbStructInfo);
 
 /* Gets the number of length bytes from the given (leading) length byte */
-#define GET_LEN_BYTES(b) ((b) <= 0x7f ? 1 : 1 + ((b) & 0x7f))
+#define GET_LEN_BYTES(b) ((b) <= 0x80 ? 1 : 1 + ((b) & 0x7f))
 
 /* Helper function to get the encoded length of the data starting at pbEncoded,
  * where pbEncoded[0] is the tag.  If the data are too short to contain a




More information about the wine-cvs mailing list