Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/SinkPolicy.inl

Issue 5231751647461376: Issue 1264 - Generate custom response for subdocument on subdomain request (Closed)
Patch Set: Created Sept. 5, 2014, 3:16 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/plugin/PluginWbPassThrough.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/SinkPolicy.inl
===================================================================
--- a/src/plugin/SinkPolicy.inl
+++ b/src/plugin/SinkPolicy.inl
@@ -362,9 +362,10 @@
{
ATLASSERT(pTargetProtocol != 0);
+ bool handled = false;
Sink* pSink = GetSink(static_cast<const Protocol*>(this));
HRESULT hr = pSink->OnStart(szUrl, pOIProtSink, pOIBindInfo, grfPI,
- dwReserved, pTargetProtocol);
+ dwReserved, pTargetProtocol, handled);
CComPtr<IInternetProtocolSink> spSink;
CComPtr<IInternetBindInfo> spBindInfo;
@@ -380,7 +381,7 @@
reinterpret_cast<void**>(&spBindInfo));
ATLASSERT(SUCCEEDED(hr) && spBindInfo != 0);
}
- if (SUCCEEDED(hr))
+ if (SUCCEEDED(hr) && !handled)
{
hr = pTargetProtocol->Start(szUrl, spSink, spBindInfo, grfPI,
dwReserved);
« no previous file with comments | « src/plugin/PluginWbPassThrough.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld