Commit 3a7bd03d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Fixed tests on win10.

parent 68dddd8d
......@@ -1067,7 +1067,8 @@ static void test_IsDomainLegalCookieDomainW(void)
static void test_PrivacyGetSetZonePreferenceW(void)
{
DWORD ret, zone, type, template, old_template;
DWORD ret, zone, type, template, old_template, pref_size = 0;
WCHAR pref[256];
zone = 3;
type = 0;
......@@ -1078,6 +1079,14 @@ static void test_PrivacyGetSetZonePreferenceW(void)
ret = pPrivacyGetZonePreferenceW(zone, type, &old_template, NULL, NULL);
ok(ret == 0, "expected ret == 0, got %u\n", ret);
trace("template %u\n", old_template);
if(old_template == PRIVACY_TEMPLATE_ADVANCED) {
pref_size = sizeof(pref)/sizeof(WCHAR);
ret = pPrivacyGetZonePreferenceW(zone, type, &old_template, pref, &pref_size);
ok(ret == 0, "expected ret == 0, got %u\n", ret);
}
template = 5;
ret = pPrivacySetZonePreferenceW(zone, type, template, NULL);
ok(ret == 0, "expected ret == 0, got %u\n", ret);
......@@ -1088,7 +1097,7 @@ static void test_PrivacyGetSetZonePreferenceW(void)
ok(template == 5, "expected template == 5, got %u\n", template);
template = 5;
ret = pPrivacySetZonePreferenceW(zone, type, old_template, NULL);
ret = pPrivacySetZonePreferenceW(zone, type, old_template, pref_size ? pref : NULL);
ok(ret == 0, "expected ret == 0, got %u\n", ret);
}
......
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