crypt32: Add index of failing test to output.

This commit is contained in:
Juan Lang 2009-01-29 16:53:56 -08:00 committed by Alexandre Julliard
parent 44e7d7b682
commit 10b7b81e21

View File

@ -1984,10 +1984,10 @@ static void test_encodeBits(DWORD dwEncoding)
if (buf) if (buf)
{ {
ok(bufSize == bits[i].encoded[1] + 2, ok(bufSize == bits[i].encoded[1] + 2,
"Got unexpected size %d, expected %d\n", bufSize, "%d: Got unexpected size %d, expected %d\n", i, bufSize,
bits[i].encoded[1] + 2); bits[i].encoded[1] + 2);
ok(!memcmp(buf, bits[i].encoded, bits[i].encoded[1] + 2), ok(!memcmp(buf, bits[i].encoded, bits[i].encoded[1] + 2),
"Unexpected value\n"); "%d: Unexpected value\n", i);
LocalFree(buf); LocalFree(buf);
} }
} }