crypt32: Correct GET_LEN_BYTES for the indefinite-length form.

This commit is contained in:
Juan Lang 2007-09-17 15:01:29 -07:00 committed by Alexandre Julliard
parent 15b19f1d16
commit e747f706b1
1 changed files with 1 additions and 1 deletions

View File

@ -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