Commit f9e5c96e authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

wintrust/tests: Fix test for pfnAddSgnr2Chain.

parent 225c43b8
...@@ -176,16 +176,15 @@ static void test_utils(SAFE_PROVIDER_FUNCTIONS *funcs) ...@@ -176,16 +176,15 @@ static void test_utils(SAFE_PROVIDER_FUNCTIONS *funcs)
ok(data.csSigners == 2, "Expected 2 signers, got %d\n", data.csSigners); ok(data.csSigners == 2, "Expected 2 signers, got %d\n", data.csSigners);
ok(!memcmp(&data.pasSigners[1], &sgnr, sizeof(sgnr)), ok(!memcmp(&data.pasSigners[1], &sgnr, sizeof(sgnr)),
"Unexpected data in signer\n"); "Unexpected data in signer\n");
/* This also adds, but the data aren't copied */ /* This also adds, but the index is ignored */
sgnr.cbStruct = sizeof(DWORD); sgnr.cbStruct = sizeof(DWORD);
ret = funcs->pfnAddSgnr2Chain(&data, FALSE, 0, &sgnr); ret = funcs->pfnAddSgnr2Chain(&data, FALSE, 0, &sgnr);
ok(ret, "pfnAddSgnr2Chain failed: %08x\n", GetLastError()); ok(ret, "pfnAddSgnr2Chain failed: %08x\n", GetLastError());
ok(data.csSigners == 3, "Expected 3 signers, got %d\n", data.csSigners); ok(data.csSigners == 3, "Expected 3 signers, got %d\n", data.csSigners);
ok(data.pasSigners[0].cbStruct == 0, "Unexpected data size %d\n", sgnr.sftVerifyAsOf.dwLowDateTime = 0;
data.pasSigners[0].cbStruct); todo_wine
ok(data.pasSigners[0].sftVerifyAsOf.dwLowDateTime == 0, ok(!memcmp(&data.pasSigners[2], &sgnr, sizeof(sgnr)),
"Unexpected verify time %d\n", "Unexpected data in signer\n");
data.pasSigners[0].sftVerifyAsOf.dwLowDateTime);
/* But too large a thing isn't added */ /* But too large a thing isn't added */
sgnr.cbStruct = sizeof(sgnr) + sizeof(DWORD); sgnr.cbStruct = sizeof(sgnr) + sizeof(DWORD);
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment