[BROWSEUI] CCommonBrowser class should support aggregation (#3308)
authorOleg Dubinskiy <oleg.dubinskij2013@yandex.ua>
Sat, 24 Oct 2020 15:02:18 +0000 (18:02 +0300)
committerGitHub <noreply@github.com>
Sat, 24 Oct 2020 15:02:18 +0000 (18:02 +0300)
It will remove the following error from the log when use MS shell32.dll in ReactOS:
`fixme:(dll/win32/ole32/compobj.c:3454) Class {af604efe-8897-11d1-b944-00a0c90312e1} does not support aggregation`.
References:
https://www.geoffchappell.com/studies/windows/ie/browseui/classes/ccommonbrowser.htm
https://docs.microsoft.com/en-us/cpp/atl/reference/aggregation-and-class-factory-macros?view=vs-2019
CORE-17345

dll/win32/browseui/commonbrowser.h

index c482bb1..c6060b7 100644 (file)
@@ -187,7 +187,7 @@ public:
     virtual HRESULT STDMETHODCALLTYPE Drop(IDataObject *pDataObj, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect);
 
     DECLARE_REGISTRY_RESOURCEID(IDR_COMMONBROWSER)
-    DECLARE_NOT_AGGREGATABLE(CCommonBrowser)
+    DECLARE_AGGREGATABLE(CCommonBrowser)
 
     DECLARE_PROTECT_FINAL_CONSTRUCT()