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
719ab21d
Commit
719ab21d
authored
Sep 03, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Avoid direct notifications from callbacks from Read call.
parent
8bf9d8e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
bindprot.c
dlls/urlmon/bindprot.c
+10
-1
No files found.
dlls/urlmon/bindprot.c
View file @
719ab21d
...
...
@@ -171,9 +171,14 @@ static void push_task(BindProtocol *This, task_header_t *task, task_proc_t proc)
}
}
static
inline
BOOL
is_apartment_thread
(
BindProtocol
*
This
)
{
return
This
->
apartment_thread
==
GetCurrentThreadId
();
}
static
inline
BOOL
do_direct_notif
(
BindProtocol
*
This
)
{
return
!
(
This
->
pi
&
PI_APARTMENTTHREADED
)
||
(
This
->
apartment_thread
==
GetCurrentThreadId
(
)
&&
!
This
->
continue_call
);
return
!
(
This
->
pi
&
PI_APARTMENTTHREADED
)
||
(
is_apartment_thread
(
This
)
&&
!
This
->
continue_call
);
}
static
HRESULT
handle_mime_filter
(
BindProtocol
*
This
,
IInternetProtocol
*
mime_filter
)
...
...
@@ -735,7 +740,11 @@ static HRESULT WINAPI ProtocolHandler_Read(IInternetProtocol *iface, void *pv,
if
(
read
<
cb
)
{
ULONG
cread
=
0
;
if
(
is_apartment_thread
(
This
))
This
->
continue_call
++
;
hres
=
IInternetProtocol_Read
(
This
->
protocol
,
(
BYTE
*
)
pv
+
read
,
cb
-
read
,
&
cread
);
if
(
is_apartment_thread
(
This
))
This
->
continue_call
--
;
read
+=
cread
;
}
...
...
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