From 3e610e85391e6c582d0f5f7cfb201923b655b093 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Mon, 17 Sep 2007 15:01:29 -0700 Subject: [PATCH] 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_AsnDecodeUnsign 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 -- 1.4.1