Commit d3c565f4 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 6855740a
......@@ -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;
}
......
......@@ -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 */
}
......
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