Hans Leidekker (@hans) commented about dlls/cryptxml/tests/cryptxml.c:
- ok( hr == E_INVALIDARG, "got hr %#lx.\n", hr );
- hr = CryptXmlGetDocContext( handle, NULL );
- ok( hr == E_INVALIDARG, "got hr %#lx.\n", hr );
- hr = CryptXmlGetDocContext( handle, &doc );
- ok( hr == S_OK, "got hr %#lx.\n", hr );
- ok( doc->cSignature == 1, "got signature count %lu\n", doc->cSignature );
- ok( doc->rgpSignature != NULL, "got NULL rgpSignature\n" );
- hr = CryptXmlGetSignature( NULL, &sig );
- ok( hr == E_INVALIDARG, "got hr %#lx.\n", hr );
- hr = CryptXmlGetSignature( handle, NULL );
- ok( hr == E_INVALIDARG, "got hr %#lx.\n", hr );
- hr = CryptXmlGetSignature( handle, &sig );
- ok( hr == CRYPT_XML_E_HANDLE, "got hr %#lx.\n", hr );
- ok( sig == NULL, "got sig %p\n", sig );
You should set sig to a known value before the call.