crypt32: Fix off-by-one error in formatting szOID_AUTHORITY_KEY_IDENTIFIER2.
This commit is contained in:
parent
1c35b251e8
commit
a82454b2ee
|
@ -1095,7 +1095,7 @@ static BOOL WINAPI CRYPT_FormatAuthorityKeyId2(DWORD dwCertEncodingType,
|
|||
size = bytesNeeded;
|
||||
ret = CRYPT_FormatKeyId(&info->KeyId, str, &size);
|
||||
if (ret)
|
||||
str += size / sizeof(WCHAR);
|
||||
str += size / sizeof(WCHAR) - 1;
|
||||
}
|
||||
if (info->AuthorityCertIssuer.cAltEntry)
|
||||
{
|
||||
|
@ -1112,7 +1112,7 @@ static BOOL WINAPI CRYPT_FormatAuthorityKeyId2(DWORD dwCertEncodingType,
|
|||
ret = CRYPT_FormatCertIssuer(dwFormatStrType,
|
||||
&info->AuthorityCertIssuer, str, &size);
|
||||
if (ret)
|
||||
str += size / sizeof(WCHAR);
|
||||
str += size / sizeof(WCHAR) - 1;
|
||||
}
|
||||
if (info->AuthorityCertSerialNumber.cbData)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue