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
ed1c7f81
Commit
ed1c7f81
authored
Dec 30, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Make start_binding more generic.
parent
785e9817
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
binding.c
dlls/urlmon/binding.c
+18
-3
umon.c
dlls/urlmon/umon.c
+1
-1
urlmon_main.h
dlls/urlmon/urlmon_main.h
+1
-1
No files found.
dlls/urlmon/binding.c
View file @
ed1c7f81
...
...
@@ -1219,14 +1219,12 @@ static HRESULT Binding_Create(LPCWSTR url, IBindCtx *pbc, REFIID riid, Binding *
return
S_OK
;
}
HRESULT
start_binding
(
LPCWSTR
url
,
IBindCtx
*
pbc
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
start_binding
(
LPCWSTR
url
,
IBindCtx
*
pbc
,
REFIID
riid
,
Binding
**
ret
)
{
Binding
*
binding
=
NULL
;
HRESULT
hres
;
MSG
msg
;
*
ppv
=
NULL
;
hres
=
Binding_Create
(
url
,
pbc
,
riid
,
&
binding
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
@@ -1242,6 +1240,8 @@ HRESULT start_binding(LPCWSTR url, IBindCtx *pbc, REFIID riid, void **ppv)
hres
=
IInternetProtocol_Start
(
binding
->
protocol
,
url
,
PROTSINK
(
binding
),
BINDINF
(
binding
),
0
,
0
);
TRACE
(
"start ret %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
{
WARN
(
"Start failed: %08x
\n
"
,
hres
);
...
...
@@ -1261,6 +1261,21 @@ HRESULT start_binding(LPCWSTR url, IBindCtx *pbc, REFIID riid, void **ppv)
}
}
*
ret
=
binding
;
return
S_OK
;
}
HRESULT
bind_to_storage
(
LPCWSTR
url
,
IBindCtx
*
pbc
,
REFIID
riid
,
void
**
ppv
)
{
Binding
*
binding
;
HRESULT
hres
;
*
ppv
=
NULL
;
hres
=
start_binding
(
url
,
pbc
,
riid
,
&
binding
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
binding
->
stream
->
init_buf
)
{
if
(
binding
->
state
&
BINDING_LOCKED
)
IInternetProtocol_UnlockRequest
(
binding
->
protocol
);
...
...
dlls/urlmon/umon.c
View file @
ed1c7f81
...
...
@@ -743,7 +743,7 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface,
TRACE
(
"(%p)->(%p %p %s %p)
\n
"
,
This
,
pbc
,
pmkToLeft
,
debugstr_guid
(
riid
),
ppvObject
);
return
start_binding
(
This
->
URLName
,
pbc
,
riid
,
ppvObject
);
return
bind_to_storage
(
This
->
URLName
,
pbc
,
riid
,
ppvObject
);
}
/******************************************************************************
...
...
dlls/urlmon/urlmon_main.h
View file @
ed1c7f81
...
...
@@ -68,7 +68,7 @@ void UMCloseCacheFileStream(IUMCacheStream *pstr);
IInternetProtocolInfo
*
get_protocol_info
(
LPCWSTR
url
);
HRESULT
get_protocol_handler
(
LPCWSTR
url
,
CLSID
*
clsid
,
IClassFactory
**
ret
);
HRESULT
start_binding
(
LPCWSTR
url
,
IBindCtx
*
pbc
,
REFIID
riid
,
void
**
ppv
);
HRESULT
bind_to_storage
(
LPCWSTR
url
,
IBindCtx
*
pbc
,
REFIID
riid
,
void
**
ppv
);
HRESULT
create_binding_protocol
(
LPCWSTR
url
,
BOOL
from_urlmon
,
IInternetProtocol
**
protocol
);
void
set_binding_sink
(
IInternetProtocol
*
bind_protocol
,
IInternetProtocolSink
*
sink
);
...
...
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