advapi32/tests: Make sure to use return value (LLVM/Clang).
This commit is contained in:
parent
1f10a78cb0
commit
d10a4dce8e
|
@ -414,6 +414,7 @@ static void test_verify_sig(void)
|
|||
CRYPT_NEWKEYSET);
|
||||
if (!ret && GetLastError() == NTE_EXISTS)
|
||||
ret = pCryptAcquireContextA(&prov, szKeySet, NULL, PROV_RSA_FULL, 0);
|
||||
ok(ret, "CryptAcquireContextA failed: %08x\n", GetLastError());
|
||||
ret = pCryptImportKey(prov, (LPBYTE)privKey, sizeof(privKey), 0, 0, &key);
|
||||
ok(ret, "CryptImportKey failed: %08x\n", GetLastError());
|
||||
ret = pCryptCreateHash(prov, CALG_MD5, 0, 0, &hash);
|
||||
|
@ -898,6 +899,7 @@ static void test_set_provider_ex(void)
|
|||
|
||||
/* call CryptGetDefaultProvider to see if they match */
|
||||
result = pCryptGetDefaultProviderA(PROV_RSA_FULL, NULL, CRYPT_MACHINE_DEFAULT, NULL, &cbProvName);
|
||||
ok(result, "%d\n", GetLastError());
|
||||
if (!(pszProvName = LocalAlloc(LMEM_ZEROINIT, cbProvName)))
|
||||
goto reset;
|
||||
|
||||
|
|
Loading…
Reference in New Issue