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

Side by Side Diff: src/plugin/PluginClass.cpp

Issue 6453924974297088: Issue 1619 - Wrong return value of CPluginClass::Invoke (Closed)
Patch Set: Created Nov. 26, 2014, 8:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginClass.h" 3 #include "PluginClass.h"
4 #include "PluginSettings.h" 4 #include "PluginSettings.h"
5 #include "PluginSystem.h" 5 #include "PluginSystem.h"
6 #include "PluginFilter.h" 6 #include "PluginFilter.h"
7 #include "PluginMimeFilterClient.h" 7 #include "PluginMimeFilterClient.h"
8 #include "PluginClient.h" 8 #include "PluginClient.h"
9 #include "PluginClientFactory.h" 9 #include "PluginClientFactory.h"
10 #include "PluginMutex.h" 10 #include "PluginMutex.h"
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 WCHAR tmp[256]; 622 WCHAR tmp[256];
623 wsprintf(tmp, L"Invoke: %d\n", dispidMember); 623 wsprintf(tmp, L"Invoke: %d\n", dispidMember);
624 DEBUG_GENERAL(tmp); 624 DEBUG_GENERAL(tmp);
625 switch (dispidMember) 625 switch (dispidMember)
626 { 626 {
627 627
628 case DISPID_WINDOWSTATECHANGED: 628 case DISPID_WINDOWSTATECHANGED:
629 return OnTabChanged(pDispParams, wFlags); 629 return OnTabChanged(pDispParams, wFlags);
630 break; 630 break;
631 case DISPID_HTMLDOCUMENTEVENTS2_ONBEFOREUPDATE: 631 case DISPID_HTMLDOCUMENTEVENTS2_ONBEFOREUPDATE:
632 return VARIANT_TRUE; 632 return VARIANT_TRUE;
Oleksandr 2014/11/27 09:52:56 How about returns here? In fact most of these case
633 break; 633 break;
634 634
635 case DISPID_HTMLDOCUMENTEVENTS2_ONCLICK: 635 case DISPID_HTMLDOCUMENTEVENTS2_ONCLICK:
636 return VARIANT_TRUE; 636 return VARIANT_TRUE;
637 break; 637 break;
638 638
639 case DISPID_EVMETH_ONLOAD: 639 case DISPID_EVMETH_ONLOAD:
640 DEBUG_NAVI("Navi::OnLoad") 640 DEBUG_NAVI("Navi::OnLoad")
641 return VARIANT_TRUE; 641 return VARIANT_TRUE;
642 break; 642 break;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 CString did; 747 CString did;
748 did.Format(L"DispId:%u", dispidMember); 748 did.Format(L"DispId:%u", dispidMember);
749 749
750 DEBUG_NAVI(L"Navi::Default " + did) 750 DEBUG_NAVI(L"Navi::Default " + did)
751 } 751 }
752 752
753 // do nothing 753 // do nothing
754 break; 754 break;
755 } 755 }
756 756
757 return VARIANT_TRUE; 757 return S_OK;
758 } 758 }
759 759
760 bool CPluginClass::InitObject(bool bBHO) 760 bool CPluginClass::InitObject(bool bBHO)
761 { 761 {
762 DEBUG_GENERAL("InitObject"); 762 DEBUG_GENERAL("InitObject");
763 CPluginSettings* settings = CPluginSettings::GetInstance(); 763 CPluginSettings* settings = CPluginSettings::GetInstance();
764 764
765 if (!settings->GetPluginEnabled()) 765 if (!settings->GetPluginEnabled())
766 { 766 {
767 s_mimeFilter->Unregister(); 767 s_mimeFilter->Unregister();
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 } 1864 }
1865 } 1865 }
1866 } 1866 }
1867 1867
1868 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); 1868 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT);
1869 } 1869 }
1870 1870
1871 return hTabWnd; 1871 return hTabWnd;
1872 1872
1873 } 1873 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld