Commit 1559fcee authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

urlmon: Added support for PI_FORCE_ASYNC flag in IInternetProtocol::Switch implementation.

parent 6bc361f2
...@@ -939,7 +939,8 @@ static HRESULT WINAPI BPInternetProtocolSink_Switch(IInternetProtocolSink *iface ...@@ -939,7 +939,8 @@ static HRESULT WINAPI BPInternetProtocolSink_Switch(IInternetProtocolSink *iface
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
memcpy(data, pProtocolData, sizeof(PROTOCOLDATA)); memcpy(data, pProtocolData, sizeof(PROTOCOLDATA));
if(!do_direct_notif(This)) { if((This->pi&PI_APARTMENTTHREADED && pProtocolData->grfFlags&PI_FORCE_ASYNC)
|| !do_direct_notif(This)) {
switch_task_t *task; switch_task_t *task;
task = heap_alloc(sizeof(switch_task_t)); task = heap_alloc(sizeof(switch_task_t));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment