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
e8d2b543
Commit
e8d2b543
authored
Feb 07, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Unlock protocol only if it was locked.
parent
451a8a6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
binding.c
dlls/urlmon/binding.c
+8
-3
No files found.
dlls/urlmon/binding.c
View file @
e8d2b543
...
...
@@ -91,6 +91,7 @@ struct Binding {
LPWSTR
url
;
BOOL
verified_mime
;
DWORD
continue_call
;
BOOL
request_locked
;
DWORD
apartment_thread
;
HWND
notif_hwnd
;
...
...
@@ -871,8 +872,10 @@ static HRESULT WINAPI InternetProtocolSink_ReportData(IInternetProtocolSink *ifa
if
(
grfBSCF
&
BSCF_LASTDATANOTIFICATION
)
on_progress
(
This
,
ulProgress
,
ulProgressMax
,
BINDSTATUS_ENDDOWNLOADDATA
,
This
->
url
);
if
(
grfBSCF
&
BSCF_FIRSTDATANOTIFICATION
)
IInternetProtocol_LockRequest
(
This
->
protocol
,
0
);
if
(
!
This
->
request_locked
)
{
HRESULT
hres
=
IInternetProtocol_LockRequest
(
This
->
protocol
,
0
);
This
->
request_locked
=
SUCCEEDED
(
hres
);
}
on_data_available
(
This
,
grfBSCF
);
...
...
@@ -1155,6 +1158,7 @@ static HRESULT Binding_Create(LPCWSTR url, IBindCtx *pbc, REFIID riid, Binding *
ret
->
notif_hwnd
=
get_notif_hwnd
();
ret
->
verified_mime
=
FALSE
;
ret
->
continue_call
=
0
;
ret
->
request_locked
=
FALSE
;
ret
->
task_queue_head
=
ret
->
task_queue_tail
=
NULL
;
memset
(
&
ret
->
bindinfo
,
0
,
sizeof
(
BINDINFO
));
...
...
@@ -1240,7 +1244,8 @@ HRESULT start_binding(LPCWSTR url, IBindCtx *pbc, REFIID riid, void **ppv)
}
if
(
binding
->
stream
->
init_buf
)
{
IInternetProtocol_UnlockRequest
(
binding
->
protocol
);
if
(
binding
->
request_locked
)
IInternetProtocol_UnlockRequest
(
binding
->
protocol
);
IStream_AddRef
(
STREAM
(
binding
->
stream
));
*
ppv
=
binding
->
stream
;
...
...
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