HANDLE file = INVALID_HANDLE_VALUE;
WCHAR temp_path[MAX_PATH];
- if (GetTempPathW(sizeof(temp_path) / sizeof(temp_path[0]), temp_path))
+ if (GetTempPathW(ARRAY_SIZE(temp_path), temp_path))
{
static const WCHAR img[] = { 'i','m','g',0 };
BOOL ret;
int i, j;
- for (i = 0; i < sizeof(tests)/sizeof(tests[0]); i++)
+ for (i = 0; i < ARRAY_SIZE(tests); i++)
{
file = create_temp_file(pathW);
ok(file != INVALID_HANDLE_VALUE, "failed to create temporary file\n");
"expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
}
+static void test_WTHelperGetProvCertFromChain(void)
+{
+ CRYPT_PROVIDER_CERT *cert;
+
+ cert = WTHelperGetProvCertFromChain(NULL, 0);
+ ok(!cert, "got certificate\n");
+}
+
START_TEST(softpub)
{
InitFunctionPtrs();
test_wintrust();
test_wintrust_digest();
test_get_known_usages();
+ test_WTHelperGetProvCertFromChain();
}