Hans Leidekker (@hans) commented about dlls/advapi32/tests/crypt.c:
BYTE key_data[2048];
- } key_blob;
- BOOL result;
- HCRYPTPROV hProv;
- HCRYPTKEY hkey = 0;
- /* When verifying logins in "Marvel Heroes", the application passes garbage data
* in a reserved field that should always be 0 (according to documentation).
*
* This doesn't lead to any error on Windows.
*/
- result = CryptAcquireContextA(&hProv, 0, 0, PROV_RSA_AES, CRYPT_VERIFYCONTEXT);
- ok (result, "%08lx\n", GetLastError());
- if (!result) return;
I know there are more tests like this but there's no need to return early here, this call should always succeed.