Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e385df0b
Commit
e385df0b
authored
Nov 05, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Update existing session if user agent changes.
parent
552d9f36
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
protocol.c
dlls/urlmon/protocol.c
+6
-0
session.c
dlls/urlmon/session.c
+1
-0
urlmon_main.h
dlls/urlmon/urlmon_main.h
+2
-1
No files found.
dlls/urlmon/protocol.c
View file @
e385df0b
...
...
@@ -302,6 +302,12 @@ HINTERNET get_internet_session(IInternetBindInfo *bind_info)
return
internet_session
;
}
void
update_user_agent
(
WCHAR
*
user_agent
)
{
if
(
internet_session
)
InternetSetOptionW
(
internet_session
,
INTERNET_OPTION_USER_AGENT
,
user_agent
,
strlenW
(
user_agent
));
}
HRESULT
protocol_start
(
Protocol
*
protocol
,
IInternetProtocol
*
prot
,
IUri
*
uri
,
IInternetProtocolSink
*
protocol_sink
,
IInternetBindInfo
*
bind_info
)
{
...
...
dlls/urlmon/session.c
View file @
e385df0b
...
...
@@ -718,6 +718,7 @@ HRESULT WINAPI UrlMkSetSessionOption(DWORD dwOption, LPVOID pBuffer, DWORD dwBuf
heap_free
(
user_agent
);
user_agent
=
new_user_agent
;
update_user_agent
(
user_agent
);
LeaveCriticalSection
(
&
session_cs
);
break
;
...
...
dlls/urlmon/urlmon_main.h
View file @
e385df0b
...
...
@@ -72,7 +72,8 @@ IInternetProtocol *get_mime_filter(LPCWSTR) DECLSPEC_HIDDEN;
BOOL
is_registered_protocol
(
LPCWSTR
)
DECLSPEC_HIDDEN
;
HRESULT
register_namespace
(
IClassFactory
*
,
REFIID
,
LPCWSTR
,
BOOL
)
DECLSPEC_HIDDEN
;
HINTERNET
get_internet_session
(
IInternetBindInfo
*
)
DECLSPEC_HIDDEN
;
LPWSTR
get_useragent
(
void
)
DECLSPEC_HIDDEN
;
WCHAR
*
get_useragent
(
void
)
DECLSPEC_HIDDEN
;
void
update_user_agent
(
WCHAR
*
)
DECLSPEC_HIDDEN
;
void
free_session
(
void
)
DECLSPEC_HIDDEN
;
HRESULT
bind_to_storage
(
IUri
*
,
IBindCtx
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
...
...
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