rsabase/tests: Remove unneeded casts.
Francois Gouget
fgouget at free.fr
Thu Jan 4 03:51:38 CST 2007
---
This test uses '%x' to print GetLastError() which is correct since
rsabase, like rsaenh, returns a lot of NTE_XXX error codes. The
(unsigned int) cast however seems overkill to me.
dlls/rsabase/tests/rsabase.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/rsabase/tests/rsabase.c b/dlls/rsabase/tests/rsabase.c
index 089e9ca..b7746b1 100644
--- a/dlls/rsabase/tests/rsabase.c
+++ b/dlls/rsabase/tests/rsabase.c
@@ -39,13 +39,13 @@ static int init_environment(void)
{
if(!CryptAcquireContext(&hProv, szContainer, szProvider, PROV_RSA_FULL, CRYPT_NEWKEYSET))
{
- trace("%08x\n", (unsigned int)GetLastError());
+ trace("%08x\n", GetLastError());
return 0;
}
}
else
{
- trace("%08x\n", (unsigned int)GetLastError());
+ trace("%08x\n", GetLastError());
return 0;
}
}
@@ -67,10 +67,10 @@ static void test_gen_random(void)
memset(rnd2, 0, sizeof(rnd2));
result = CryptGenRandom(hProv, sizeof(rnd1), rnd1);
- ok(result, "%08x\n", (unsigned int)GetLastError());
+ ok(result, "%08x\n", GetLastError());
result = CryptGenRandom(hProv, sizeof(rnd2), rnd2);
- ok(result, "%08x\n", (unsigned int)GetLastError());
+ ok(result, "%08x\n", GetLastError());
ok(memcmp(rnd1, rnd2, sizeof(rnd1)), "CryptGenRandom generates non random data\n");
}
--
1.4.4.2
More information about the wine-patches
mailing list