dwExpectedFormatTypeFlags, dwFlags, pdwMsgAndCertEncodingType,
pdwContentType, pdwFormatType, phCertStore, phMsg, ppvContext);
+ if (dwObjectType != CERT_QUERY_OBJECT_BLOB &&
+ dwObjectType != CERT_QUERY_OBJECT_FILE)
+ {
+ WARN("unsupported type %d\n", dwObjectType);
+ SetLastError(E_INVALIDARG);
+ return FALSE;
+ }
+ if (!pvObject)
+ {
+ WARN("missing required argument\n");
+ SetLastError(E_INVALIDARG);
+ return FALSE;
+ }
if (dwExpectedContentTypeFlags & unimplementedTypes)
WARN("unimplemented for types %08x\n",
dwExpectedContentTypeFlags & unimplementedTypes);
SetLastError(0xdeadbeef);
ret = CryptQueryObject(0, NULL, 0, 0, 0, NULL, NULL, NULL, NULL, NULL,
NULL);
- todo_wine
ok(!ret && GetLastError() == E_INVALIDARG,
"expected E_INVALIDARG, got %08x\n", GetLastError());
SetLastError(0xdeadbeef);
ret = CryptQueryObject(CERT_QUERY_OBJECT_BLOB, NULL, 0, 0, 0, NULL, NULL,
NULL, NULL, NULL, NULL);
- todo_wine
ok(!ret && GetLastError() == E_INVALIDARG,
"expected E_INVALIDARG, got %08x\n", GetLastError());
/* Test with a simple cert */