crypt32/tests: Don't compare the result to itself (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2014-10-29 09:21:50 +01:00 committed by Alexandre Julliard
parent 6855740a5e
commit d3c565f44b
2 changed files with 3 additions and 3 deletions

View File

@ -3732,7 +3732,7 @@ static void compareAltNameEntry(const CERT_ALT_NAME_ENTRY *expected,
case CERT_ALT_NAME_IP_ADDRESS:
ok(U(*got).IPAddress.cbData == U(*expected).IPAddress.cbData,
"Unexpected IP address length %d\n", U(*got).IPAddress.cbData);
ok(!memcmp(U(*got).IPAddress.pbData, U(*got).IPAddress.pbData,
ok(!memcmp(U(*got).IPAddress.pbData, U(*expected).IPAddress.pbData,
U(*got).IPAddress.cbData), "Unexpected value\n");
break;
}

View File

@ -2666,12 +2666,12 @@ static void compare_signer_info(const CMSG_SIGNER_INFO *got,
ok(got->Issuer.cbData == expected->Issuer.cbData,
"Expected issuer size %d, got %d\n", expected->Issuer.cbData,
got->Issuer.cbData);
ok(!memcmp(got->Issuer.pbData, got->Issuer.pbData, got->Issuer.cbData),
ok(!memcmp(got->Issuer.pbData, expected->Issuer.pbData, got->Issuer.cbData),
"Unexpected issuer\n");
ok(got->SerialNumber.cbData == expected->SerialNumber.cbData,
"Expected serial number size %d, got %d\n", expected->SerialNumber.cbData,
got->SerialNumber.cbData);
ok(!memcmp(got->SerialNumber.pbData, got->SerialNumber.pbData,
ok(!memcmp(got->SerialNumber.pbData, expected->SerialNumber.pbData,
got->SerialNumber.cbData), "Unexpected serial number\n");
/* FIXME: check more things */
}