Andrew Talbot : crypt32/tests: Cast-qual warnings fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Dec 8 06:06:54 CST 2006
Module: wine
Branch: master
Commit: fa8b971c2e35bb811121badd34dbf36f3ab90d78
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa8b971c2e35bb811121badd34dbf36f3ab90d78
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Thu Dec 7 22:58:51 2006 +0000
crypt32/tests: Cast-qual warnings fix.
---
dlls/crypt32/tests/encode.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index 6a1801d..20c646a 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -234,12 +234,12 @@ static void test_decodeInt(DWORD dwEncod
/* 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 @@ static void test_decodeInt(DWORD dwEncod
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 @@ static void test_decodeInt(DWORD dwEncod
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-cvs
mailing list