crypt32/tests: Cast-qual warnings fix (2 of 2)
Andrew Talbot
Andrew.Talbot at talbotville.com
Thu Dec 7 16:58:51 CST 2006
Changelog:
crypt32/tests: Cast-qual warnings fix (2 of 2).
diff -urN a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
--- a/dlls/crypt32/tests/encode.c 2006-10-12 21:30:35.000000000 +0100
+++ b/dlls/crypt32/tests/encode.c 2006-12-07 22:44:30.000000000 +0000
@@ -234,12 +234,12 @@
/* When the output buffer is NULL, this always succeeds */
SetLastError(0xdeadbeef);
ret = CryptDecodeObjectEx(dwEncoding, X509_INTEGER,
- (BYTE *)ints[i].encoded, ints[i].encoded[1] + 2, 0, NULL, NULL,
+ ints[i].encoded, ints[i].encoded[1] + 2, 0, NULL, NULL,
&bufSize);
ok(ret && GetLastError() == NOERROR,
"Expected success and NOERROR, got %d\n", GetLastError());
ret = CryptDecodeObjectEx(dwEncoding, X509_INTEGER,
- (BYTE *)ints[i].encoded, ints[i].encoded[1] + 2,
+ ints[i].encoded, ints[i].encoded[1] + 2,
CRYPT_DECODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &bufSize);
ok(ret, "CryptDecodeObjectEx failed: %d\n", GetLastError());
ok(bufSize == sizeof(int), "Wrong size %d\n", bufSize);
@@ -254,12 +254,12 @@
for (i = 0; i < sizeof(bigInts) / sizeof(bigInts[0]); i++)
{
ret = CryptDecodeObjectEx(dwEncoding, X509_MULTI_BYTE_INTEGER,
- (BYTE *)bigInts[i].encoded, bigInts[i].encoded[1] + 2, 0, NULL, NULL,
+ bigInts[i].encoded, bigInts[i].encoded[1] + 2, 0, NULL, NULL,
&bufSize);
ok(ret && GetLastError() == NOERROR,
"Expected success and NOERROR, got %d\n", GetLastError());
ret = CryptDecodeObjectEx(dwEncoding, X509_MULTI_BYTE_INTEGER,
- (BYTE *)bigInts[i].encoded, bigInts[i].encoded[1] + 2,
+ bigInts[i].encoded, bigInts[i].encoded[1] + 2,
CRYPT_DECODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &bufSize);
ok(ret, "CryptDecodeObjectEx failed: %d\n", GetLastError());
ok(bufSize >= sizeof(CRYPT_INTEGER_BLOB), "Wrong size %d\n", bufSize);
@@ -279,12 +279,12 @@
for (i = 0; i < sizeof(bigUInts) / sizeof(bigUInts[0]); i++)
{
ret = CryptDecodeObjectEx(dwEncoding, X509_MULTI_BYTE_UINT,
- (BYTE *)bigUInts[i].encoded, bigUInts[i].encoded[1] + 2, 0, NULL, NULL,
+ bigUInts[i].encoded, bigUInts[i].encoded[1] + 2, 0, NULL, NULL,
&bufSize);
ok(ret && GetLastError() == NOERROR,
"Expected success and NOERROR, got %d\n", GetLastError());
ret = CryptDecodeObjectEx(dwEncoding, X509_MULTI_BYTE_UINT,
- (BYTE *)bigUInts[i].encoded, bigUInts[i].encoded[1] + 2,
+ bigUInts[i].encoded, bigUInts[i].encoded[1] + 2,
CRYPT_DECODE_ALLOC_FLAG, NULL, (BYTE *)&buf, &bufSize);
ok(ret, "CryptDecodeObjectEx failed: %d\n", GetLastError());
ok(bufSize >= sizeof(CRYPT_INTEGER_BLOB), "Wrong size %d\n", bufSize);
More information about the wine-patches
mailing list