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
27ea3804
Commit
27ea3804
authored
Jul 06, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Added semi-stub INTERNET_OPTION_END_BROWSER_SESSION implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b53b717d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
internet.c
dlls/wininet/internet.c
+2
-1
internet.c
dlls/wininet/tests/internet.c
+23
-0
No files found.
dlls/wininet/internet.c
View file @
27ea3804
...
@@ -2805,7 +2805,8 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
...
@@ -2805,7 +2805,8 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
FIXME
(
"Option INTERNET_OPTION_RESET_URLCACHE_SESSION: STUB
\n
"
);
FIXME
(
"Option INTERNET_OPTION_RESET_URLCACHE_SESSION: STUB
\n
"
);
break
;
break
;
case
INTERNET_OPTION_END_BROWSER_SESSION
:
case
INTERNET_OPTION_END_BROWSER_SESSION
:
FIXME
(
"Option INTERNET_OPTION_END_BROWSER_SESSION: STUB
\n
"
);
FIXME
(
"Option INTERNET_OPTION_END_BROWSER_SESSION: semi-stub
\n
"
);
free_cookie
();
break
;
break
;
case
INTERNET_OPTION_CONNECTED_STATE
:
case
INTERNET_OPTION_CONNECTED_STATE
:
FIXME
(
"Option INTERNET_OPTION_CONNECTED_STATE: STUB
\n
"
);
FIXME
(
"Option INTERNET_OPTION_CONNECTED_STATE: STUB
\n
"
);
...
...
dlls/wininet/tests/internet.c
View file @
27ea3804
...
@@ -1173,6 +1173,28 @@ static void test_InternetSetOption(void)
...
@@ -1173,6 +1173,28 @@ static void test_InternetSetOption(void)
ok
(
ret
==
TRUE
,
"InternetCloseHandle failed: 0x%08x
\n
"
,
GetLastError
());
ok
(
ret
==
TRUE
,
"InternetCloseHandle failed: 0x%08x
\n
"
,
GetLastError
());
}
}
static
void
test_end_browser_session
(
void
)
{
DWORD
len
;
BOOL
ret
;
ret
=
InternetSetCookieA
(
"http://www.example.com/test_end"
,
NULL
,
"A=B"
);
ok
(
ret
==
TRUE
,
"InternetSetCookie failed
\n
"
);
len
=
1024
;
ret
=
InternetGetCookieA
(
"http://www.example.com/test_end"
,
NULL
,
NULL
,
&
len
);
ok
(
ret
==
TRUE
,
"InternetGetCookie failed
\n
"
);
ok
(
len
!=
0
,
"len = 0
\n
"
);
ret
=
InternetSetOptionA
(
NULL
,
INTERNET_OPTION_END_BROWSER_SESSION
,
NULL
,
0
);
ok
(
ret
,
"InternetSetOptio(INTERNET_OPTION_END_BROWSER_SESSION) failed: %u
\n
"
,
GetLastError
());
len
=
1024
;
ret
=
InternetGetCookieA
(
"http://www.example.com/test_end"
,
NULL
,
NULL
,
&
len
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_NO_MORE_ITEMS
,
"InternetGetCookie returned %x (%u)
\n
"
,
ret
,
GetLastError
());
ok
(
!
len
,
"len = %u
\n
"
,
len
);
}
#define verifyProxyEnable(e) r_verifyProxyEnable(__LINE__, e)
#define verifyProxyEnable(e) r_verifyProxyEnable(__LINE__, e)
static
void
r_verifyProxyEnable
(
LONG
l
,
DWORD
exp
)
static
void
r_verifyProxyEnable
(
LONG
l
,
DWORD
exp
)
{
{
...
@@ -1805,4 +1827,5 @@ START_TEST(internet)
...
@@ -1805,4 +1827,5 @@ START_TEST(internet)
win_skip
(
"Privacy[SG]etZonePreferenceW are not available
\n
"
);
win_skip
(
"Privacy[SG]etZonePreferenceW are not available
\n
"
);
test_InternetSetOption
();
test_InternetSetOption
();
test_end_browser_session
();
}
}
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