From 8ccd53dd7aaa6f27b097f13fa05953868d150d2b Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Tue, 9 Sep 2008 12:26:31 -0700 Subject: [PATCH] crypt32: Get rid of a magic number and a redundant assignment. --- dlls/crypt32/decode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c index 0d46fe3597f..4ed2abe9d81 100644 --- a/dlls/crypt32/decode.c +++ b/dlls/crypt32/decode.c @@ -2586,7 +2586,7 @@ static BOOL CRYPT_AsnDecodeAltNameEntry(const BYTE *pbEncoded, DWORD cbEncoded, { *pcbStructInfo = bytesNeeded; /* MS used values one greater than the asn1 ones.. sigh */ - entry->dwAltNameChoice = (pbEncoded[0] & 0x7f) + 1; + entry->dwAltNameChoice = (pbEncoded[0] & ASN_TYPE_MASK) + 1; switch (pbEncoded[0] & ASN_TYPE_MASK) { case 1: /* rfc822Name */ @@ -2604,7 +2604,6 @@ static BOOL CRYPT_AsnDecodeAltNameEntry(const BYTE *pbEncoded, DWORD cbEncoded, break; } case 4: /* directoryName */ - entry->dwAltNameChoice = CERT_ALT_NAME_DIRECTORY_NAME; /* The data are memory-equivalent with the IPAddress case, * fall-through */ -- 2.11.4.GIT