crypt32: Allow messages to be opened when compiled with CMSG_SIGNED_ENCODE_INFO_HAS_CMS_FIELDS if CMS fields aren't actually used.
This commit is contained in:
parent
427b3fbd5d
commit
3297080045
|
@ -1259,7 +1259,8 @@ static HCRYPTMSG CSignedEncodeMsg_Open(DWORD dwFlags,
|
|||
SetLastError(E_INVALIDARG);
|
||||
return NULL;
|
||||
}
|
||||
if (info->cbSize == sizeof(CMSG_SIGNED_ENCODE_INFO_WITH_CMS))
|
||||
if (info->cbSize == sizeof(CMSG_SIGNED_ENCODE_INFO_WITH_CMS) &&
|
||||
info->rgAttrCertEncoded)
|
||||
{
|
||||
FIXME("CMSG_SIGNED_ENCODE_INFO with CMS fields unsupported\n");
|
||||
return NULL;
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <winbase.h>
|
||||
#include <winerror.h>
|
||||
#define CMSG_SIGNER_ENCODE_INFO_HAS_CMS_FIELDS
|
||||
#define CMSG_SIGNED_ENCODE_INFO_HAS_CMS_FIELDS
|
||||
#include <wincrypt.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
|
|
Loading…
Reference in New Issue