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
e1c1b937
Commit
e1c1b937
authored
Mar 28, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Forward IWinInetHttpInfo calls to protocol implementations.
parent
d55ebe0a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
+21
-14
binding.c
dlls/urlmon/binding.c
+15
-13
bindprot.c
dlls/urlmon/bindprot.c
+5
-1
urlmon_main.h
dlls/urlmon/urlmon_main.h
+1
-0
No files found.
dlls/urlmon/binding.c
View file @
e1c1b937
...
...
@@ -762,19 +762,11 @@ static HRESULT WINAPI Binding_QueryInterface(IBinding *iface, REFIID riid, void
*
ppv
=
&
This
->
IWinInetHttpInfo_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IWinInetHttpInfo
,
riid
))
{
IWinInetHttpInfo
*
http_info
;
HRESULT
hres
;
TRACE
(
"(%p)->(IID_IWinInetHttpInfo %p)
\n
"
,
This
,
ppv
);
if
(
!
This
->
protocol
->
wininet_info
)
if
(
!
This
->
protocol
->
wininet_
http_
info
)
return
E_NOINTERFACE
;
hres
=
IWinInetInfo_QueryInterface
(
This
->
protocol
->
wininet_info
,
&
IID_IWinInetHttpInfo
,
(
void
**
)
&
http_info
);
if
(
FAILED
(
hres
))
return
E_NOINTERFACE
;
IWinInetHttpInfo_Release
(
http_info
);
*
ppv
=
&
This
->
IWinInetHttpInfo_iface
;
}
...
...
@@ -1259,16 +1251,26 @@ static HRESULT WINAPI WinInetHttpInfo_QueryOption(IWinInetHttpInfo *iface, DWORD
void
*
pBuffer
,
DWORD
*
pcbBuffer
)
{
Binding
*
This
=
impl_from_IWinInetHttpInfo
(
iface
);
FIXME
(
"(%p)->(%x %p %p)
\n
"
,
This
,
dwOption
,
pBuffer
,
pcbBuffer
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%x %p %p)
\n
"
,
This
,
dwOption
,
pBuffer
,
pcbBuffer
);
if
(
!
This
->
protocol
->
wininet_info
)
return
E_FAIL
;
return
IWinInetInfo_QueryOption
(
This
->
protocol
->
wininet_info
,
dwOption
,
pBuffer
,
pcbBuffer
);
}
static
HRESULT
WINAPI
WinInetHttpInfo_QueryInfo
(
IWinInetHttpInfo
*
iface
,
DWORD
dwOption
,
void
*
pBuffer
,
DWORD
*
pcbBuffer
,
DWORD
*
pdwFlags
,
DWORD
*
pdwReserved
)
{
Binding
*
This
=
impl_from_IWinInetHttpInfo
(
iface
);
FIXME
(
"(%p)->(%x %p %p %p %p)
\n
"
,
This
,
dwOption
,
pBuffer
,
pcbBuffer
,
pdwFlags
,
pdwReserved
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%x %p %p %p %p)
\n
"
,
This
,
dwOption
,
pBuffer
,
pcbBuffer
,
pdwFlags
,
pdwReserved
);
if
(
!
This
->
protocol
->
wininet_http_info
)
return
E_FAIL
;
return
IWinInetHttpInfo_QueryInfo
(
This
->
protocol
->
wininet_http_info
,
dwOption
,
pBuffer
,
pcbBuffer
,
pdwFlags
,
pdwReserved
);
}
static
const
IWinInetHttpInfoVtbl
WinInetHttpInfoVtbl
=
{
...
...
dlls/urlmon/bindprot.c
View file @
e1c1b937
...
...
@@ -329,6 +329,8 @@ static ULONG WINAPI BindProtocol_Release(IInternetProtocolEx *iface)
if
(
!
ref
)
{
if
(
This
->
wininet_info
)
IWinInetInfo_Release
(
This
->
wininet_info
);
if
(
This
->
wininet_http_info
)
IWinInetHttpInfo_Release
(
This
->
wininet_http_info
);
if
(
This
->
protocol
)
IInternetProtocol_Release
(
This
->
protocol
);
if
(
This
->
bind_info
)
...
...
@@ -523,8 +525,10 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr
This
->
protocol
=
protocol
;
if
(
urlmon_protocol
)
if
(
urlmon_protocol
)
{
IInternetProtocol_QueryInterface
(
protocol
,
&
IID_IWinInetInfo
,
(
void
**
)
&
This
->
wininet_info
);
IInternetProtocol_QueryInterface
(
protocol
,
&
IID_IWinInetHttpInfo
,
(
void
**
)
&
This
->
wininet_http_info
);
}
set_binding_sink
(
This
,
pOIProtSink
,
pOIBindInfo
);
...
...
dlls/urlmon/urlmon_main.h
View file @
e1c1b937
...
...
@@ -180,6 +180,7 @@ typedef struct {
IInternetProtocolSink
*
protocol_sink
;
IServiceProvider
*
service_provider
;
IWinInetInfo
*
wininet_info
;
IWinInetHttpInfo
*
wininet_http_info
;
struct
{
IInternetProtocol
IInternetProtocol_iface
;
...
...
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