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
e3c47c88
Commit
e3c47c88
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: Binding_Create clean up.
parent
91938977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
binding.c
dlls/urlmon/binding.c
+2
-18
No files found.
dlls/urlmon/binding.c
View file @
e3c47c88
...
...
@@ -1162,7 +1162,6 @@ static BOOL is_urlmon_protocol(LPCWSTR url)
static
HRESULT
Binding_Create
(
LPCWSTR
url
,
IBindCtx
*
pbc
,
REFIID
riid
,
Binding
**
binding
)
{
Binding
*
ret
;
int
len
;
HRESULT
hres
;
if
(
!
IsEqualGUID
(
&
IID_IStream
,
riid
))
{
...
...
@@ -1172,7 +1171,7 @@ static HRESULT Binding_Create(LPCWSTR url, IBindCtx *pbc, REFIID riid, Binding *
URLMON_LockModule
();
ret
=
heap_alloc
(
sizeof
(
Binding
));
ret
=
heap_alloc
_zero
(
sizeof
(
Binding
));
ret
->
lpBindingVtbl
=
&
BindingVtbl
;
ret
->
lpInternetProtocolSinkVtbl
=
&
InternetProtocolSinkVtbl
;
...
...
@@ -1181,25 +1180,12 @@ static HRESULT Binding_Create(LPCWSTR url, IBindCtx *pbc, REFIID riid, Binding *
ret
->
ref
=
1
;
ret
->
callback
=
NULL
;
ret
->
protocol
=
NULL
;
ret
->
service_provider
=
NULL
;
ret
->
stream
=
NULL
;
ret
->
mime
=
NULL
;
ret
->
clipboard_format
=
0
;
ret
->
url
=
NULL
;
ret
->
apartment_thread
=
GetCurrentThreadId
();
ret
->
notif_hwnd
=
get_notif_hwnd
();
ret
->
report_mime
=
TRUE
;
ret
->
continue_call
=
0
;
ret
->
state
=
0
;
ret
->
download_state
=
BEFORE_DOWNLOAD
;
ret
->
task_queue_head
=
ret
->
task_queue_tail
=
NULL
;
ret
->
hres
=
S_OK
;
memset
(
&
ret
->
bindinfo
,
0
,
sizeof
(
BINDINFO
));
ret
->
bindinfo
.
cbSize
=
sizeof
(
BINDINFO
);
ret
->
bindf
=
0
;
InitializeCriticalSection
(
&
ret
->
section
);
ret
->
section
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": Binding.section"
);
...
...
@@ -1235,9 +1221,7 @@ static HRESULT Binding_Create(LPCWSTR url, IBindCtx *pbc, REFIID riid, Binding *
if
(
!
is_urlmon_protocol
(
url
))
ret
->
bindf
|=
BINDF_NEEDFILE
;
len
=
strlenW
(
url
)
+
1
;
ret
->
url
=
heap_alloc
(
len
*
sizeof
(
WCHAR
));
memcpy
(
ret
->
url
,
url
,
len
*
sizeof
(
WCHAR
));
ret
->
url
=
heap_strdupW
(
url
);
ret
->
stream
=
create_stream
(
ret
->
protocol
);
ret
->
stgmed
.
tymed
=
TYMED_ISTREAM
;
...
...
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