crypt32: Correct GET_LEN_BYTES for the indefinite-length form.
This commit is contained in:
parent
15b19f1d16
commit
e747f706b1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue