wintrust: Don't fail if a registry value doesn't exist.
This commit is contained in:
parent
2d2e718b2b
commit
9e07f0de08
|
@ -332,9 +332,9 @@ static void test_RegPolicyFlags(void)
|
||||||
|
|
||||||
size = sizeof(flags1);
|
size = sizeof(flags1);
|
||||||
r = RegQueryValueExA(key, State, NULL, NULL, (LPBYTE)&flags1, &size);
|
r = RegQueryValueExA(key, State, NULL, NULL, (LPBYTE)&flags1, &size);
|
||||||
ok(!r, "RegQueryValueEx failed: %d\n", r);
|
ok(!r || r == ERROR_FILE_NOT_FOUND, "RegQueryValueEx failed: %d\n", r);
|
||||||
|
if (r)
|
||||||
ok(flags1 == flags2, "Got %08x flags instead of %08x\n", flags1, flags2);
|
ok(flags1 == flags2, "Got %08x flags instead of %08x\n", flags1, flags2);
|
||||||
|
|
||||||
flags3 = flags2 | 1;
|
flags3 = flags2 | 1;
|
||||||
ret = pWintrustSetRegPolicyFlags(flags3);
|
ret = pWintrustSetRegPolicyFlags(flags3);
|
||||||
|
|
Loading…
Reference in New Issue