urlmon: Added support for PI_FORCE_ASYNC flag in IInternetProtocol::Switch implementation.
This commit is contained in:
parent
6bc361f2fc
commit
1559fceeea
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue