ADVAPI32: remove unnecessary casts in crypt tests

Mike McCormack mike at codeweavers.com
Tue Aug 17 01:56:49 CDT 2004


ChangeLog:
* remove unnecessary casts in crypt tests
-------------- next part --------------
Index: dlls/advapi32/tests/crypt.c
===================================================================
RCS file: /home/wine/wine/dlls/advapi32/tests/crypt.c,v
retrieving revision 1.6
diff -u -r1.6 crypt.c
--- dlls/advapi32/tests/crypt.c	16 Aug 2004 21:10:18 -0000	1.6
+++ dlls/advapi32/tests/crypt.c	17 Aug 2004 05:33:21 -0000
@@ -88,33 +88,33 @@
 	 * but since this is likely to change between CSP versions, we don't check
 	 * this. Please don't change the order of tests. */
 	result = CryptAcquireContext(&hProv, NULL, NULL, 0, 0);
-	ok(!result && GetLastError()==NTE_BAD_PROV_TYPE, "%08x\n", (unsigned int)GetLastError());
+	ok(!result && GetLastError()==NTE_BAD_PROV_TYPE, "%ld\n", GetLastError());
 	
 	result = CryptAcquireContext(&hProv, NULL, NULL, 1000, 0);
-	ok(!result && GetLastError()==NTE_BAD_PROV_TYPE, "%08x\n", (unsigned int)GetLastError());
+	ok(!result && GetLastError()==NTE_BAD_PROV_TYPE, "%ld\n", GetLastError());
 
 	result = CryptAcquireContext(&hProv, NULL, NULL, NON_DEF_PROV_TYPE, 0);
-	ok(!result && GetLastError()==NTE_PROV_TYPE_NOT_DEF, "%08x\n", (unsigned int)GetLastError());
+	ok(!result && GetLastError()==NTE_PROV_TYPE_NOT_DEF, "%ld\n", GetLastError());
 	
 	result = CryptAcquireContext(&hProv, szKeySet, szNonExistentProv, PROV_RSA_FULL, 0);
-	ok(!result && GetLastError()==NTE_KEYSET_NOT_DEF, "%08x\n", (unsigned int)GetLastError());
+	ok(!result && GetLastError()==NTE_KEYSET_NOT_DEF, "%ld\n", GetLastError());
 
 	result = CryptAcquireContext(&hProv, szKeySet, szRsaBaseProv, NON_DEF_PROV_TYPE, 0);
-	ok(!result && GetLastError()==NTE_PROV_TYPE_NO_MATCH, "%08x\n", (unsigned int)GetLastError());
+	ok(!result && GetLastError()==NTE_PROV_TYPE_NO_MATCH, "%ld\n", GetLastError());
 	
 	result = CryptAcquireContext(NULL, szKeySet, szRsaBaseProv, PROV_RSA_FULL, 0);
-	ok(!result && GetLastError()==ERROR_INVALID_PARAMETER, "%08x\n", (unsigned int)GetLastError());
+	ok(!result && GetLastError()==ERROR_INVALID_PARAMETER, "%ld\n", GetLastError());
 	
 	/* Last not least, try to really acquire a context. */
 	result = CryptAcquireContext(&hProv, szKeySet, szRsaBaseProv, PROV_RSA_FULL, 0);
-	ok(result, "%08x\n", (unsigned int)GetLastError());
+	ok(result, "%ld\n", GetLastError());
 
 	if (GetLastError() == ERROR_SUCCESS) 
 		CryptReleaseContext(hProv, 0);
 
 	/* Try again, witch an empty ("\0") szProvider parameter */
 	result = CryptAcquireContext(&hProv, szKeySet, "", PROV_RSA_FULL, 0);
-	ok(result, "%08x\n", (unsigned int)GetLastError());
+	ok(result, "%ld\n", GetLastError());
 
 	if (GetLastError() == ERROR_SUCCESS)
 		CryptReleaseContext(hProv, 0);


More information about the wine-patches mailing list