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

This commit is contained in:
Piotr Caban 2012-01-20 14:52:34 +01:00 committed by Alexandre Julliard
parent 6bc361f2fc
commit 1559fceeea
1 changed files with 2 additions and 1 deletions

View File

@ -939,7 +939,8 @@ static HRESULT WINAPI BPInternetProtocolSink_Switch(IInternetProtocolSink *iface
return E_OUTOFMEMORY;
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;
task = heap_alloc(sizeof(switch_task_t));