mirror of
https://github.com/reactos/wine.git
synced 2025-02-23 14:24:13 +00:00
crypt32: Set last error on alloc failure.
This commit is contained in:
parent
bf313ee857
commit
81a382ac31
@ -749,9 +749,12 @@ static BOOL CRYPT_ValueToRDN(DWORD dwCertEncodingType, PCERT_NAME_INFO info,
|
|||||||
ret = CRYPT_EncodeValue(dwCertEncodingType, value,
|
ret = CRYPT_EncodeValue(dwCertEncodingType, value,
|
||||||
&info->rgRDN[info->cRDN].rgRDNAttr[0].Value, types, ppszError);
|
&info->rgRDN[info->cRDN].rgRDNAttr[0].Value, types, ppszError);
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
if (ret)
|
SetLastError(ERROR_OUTOFMEMORY);
|
||||||
info->cRDN++;
|
info->cRDN++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
SetLastError(ERROR_OUTOFMEMORY);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user