Commit c6301aec authored by Austin English's avatar Austin English Committed by Alexandre Julliard

crypt32/tests: Don't check return values inside of if(0) (LLVM/Clang).

parent f6364bf9
......@@ -47,8 +47,7 @@ static void test_findAttribute(void)
if (0)
{
/* crashes */
SetLastError(0xdeadbeef);
ret = CertFindAttribute(NULL, 1, NULL);
CertFindAttribute(NULL, 1, NULL);
/* returns NULL, last error is ERROR_INVALID_PARAMETER
* crashes on Vista
*/
......@@ -138,7 +137,7 @@ static void test_findRDNAttr(void)
{
/* crashes */
SetLastError(0xdeadbeef);
ret = CertFindRDNAttr(NULL, NULL);
CertFindRDNAttr(NULL, NULL);
/* returns NULL, last error is ERROR_INVALID_PARAMETER
* crashes on Vista
*/
......@@ -395,7 +394,7 @@ static void test_format_object(void)
/* Crash */
if (0)
{
ret = pCryptFormatObject(0, 0, 0, NULL, NULL, NULL, 0, NULL, NULL);
pCryptFormatObject(0, 0, 0, NULL, NULL, NULL, 0, NULL, NULL);
}
/* When called with any but the default encoding, it fails to find a
* formatting function.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment