Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
deeb3a9f
Commit
deeb3a9f
authored
Jun 25, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Improve the PrivacyGet/SetZonePreferenceW stubs.
parent
76656994
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
internet.c
dlls/wininet/internet.c
+7
-1
internet.c
dlls/wininet/tests/internet.c
+29
-0
No files found.
dlls/wininet/internet.c
View file @
deeb3a9f
...
...
@@ -3815,12 +3815,16 @@ DWORD WINAPI InternetConfirmZoneCrossingW( HWND hWnd, LPWSTR szUrlPrev, LPWSTR s
return
ERROR_SUCCESS
;
}
static
DWORD
zone_preference
=
3
;
/***********************************************************************
* PrivacySetZonePreferenceW (WININET.@)
*/
DWORD
WINAPI
PrivacySetZonePreferenceW
(
DWORD
zone
,
DWORD
type
,
DWORD
template
,
LPCWSTR
preference
)
{
FIXME
(
"%x %x %x %s: stub
\n
"
,
zone
,
type
,
template
,
debugstr_w
(
preference
)
);
zone_preference
=
template
;
return
0
;
}
...
...
@@ -3830,7 +3834,9 @@ DWORD WINAPI PrivacySetZonePreferenceW( DWORD zone, DWORD type, DWORD template,
DWORD
WINAPI
PrivacyGetZonePreferenceW
(
DWORD
zone
,
DWORD
type
,
LPDWORD
template
,
LPWSTR
preference
,
LPDWORD
length
)
{
FIXME
(
"%x %x: stub
\n
"
,
zone
,
type
);
FIXME
(
"%x %x %p %p %p: stub
\n
"
,
zone
,
type
,
template
,
preference
,
length
);
if
(
template
)
*
template
=
zone_preference
;
return
0
;
}
...
...
dlls/wininet/tests/internet.c
View file @
deeb3a9f
...
...
@@ -795,6 +795,33 @@ static void test_IsDomainLegalCookieDomainW(void)
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
}
static
void
test_PrivacyGetSetZonePreferenceW
(
void
)
{
DWORD
ret
,
zone
,
type
,
template
,
old_template
;
zone
=
3
;
type
=
0
;
ret
=
PrivacyGetZonePreferenceW
(
zone
,
type
,
NULL
,
NULL
,
NULL
);
ok
(
ret
==
0
,
"expected ret == 0, got %u
\n
"
,
ret
);
old_template
=
0
;
ret
=
PrivacyGetZonePreferenceW
(
zone
,
type
,
&
old_template
,
NULL
,
NULL
);
ok
(
ret
==
0
,
"expected ret == 0, got %u
\n
"
,
ret
);
template
=
5
;
ret
=
PrivacySetZonePreferenceW
(
zone
,
type
,
template
,
NULL
);
ok
(
ret
==
0
,
"expected ret == 0, got %u
\n
"
,
ret
);
template
=
0
;
ret
=
PrivacyGetZonePreferenceW
(
zone
,
type
,
&
template
,
NULL
,
NULL
);
ok
(
ret
==
0
,
"expected ret == 0, got %u
\n
"
,
ret
);
ok
(
template
==
5
,
"expected template == 5, got %u
\n
"
,
template
);
template
=
5
;
ret
=
PrivacySetZonePreferenceW
(
zone
,
type
,
old_template
,
NULL
);
ok
(
ret
==
0
,
"expected ret == 0, got %u
\n
"
,
ret
);
}
/* ############################### */
START_TEST
(
internet
)
...
...
@@ -833,4 +860,6 @@ START_TEST(internet)
win_skip
(
"IsDomainLegalCookieDomainW (or ordinal 117) is not available
\n
"
);
else
test_IsDomainLegalCookieDomainW
();
test_PrivacyGetSetZonePreferenceW
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment