mirror of
https://github.com/reactos/reactos.git
synced 2025-07-02 19:31:21 +00:00
[RSHELL]
* Fixed the context menu for shell items. * Some more code style improvements. * Moved the toggles between using system classes and rshell classes into the constructor functions, so the code is easier to read. CORE-7586 svn path=/branches/shell-experiments/; revision=62752
This commit is contained in:
parent
9b472f38cb
commit
ba203171e1
6 changed files with 151 additions and 150 deletions
|
@ -28,6 +28,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(menusite);
|
|||
extern "C"
|
||||
HRESULT WINAPI CMenuSite_Constructor(REFIID riid, LPVOID *ppv)
|
||||
{
|
||||
#if USE_SYSTEM_MENUSITE
|
||||
hr = CoCreateInstance(CLSID_MenuBandSite,
|
||||
NULL,
|
||||
CLSCTX_INPROC_SERVER,
|
||||
riid, ppv);
|
||||
#else
|
||||
*ppv = NULL;
|
||||
|
||||
CMenuSite * site = new CComObject<CMenuSite>();
|
||||
|
@ -41,6 +47,7 @@ HRESULT WINAPI CMenuSite_Constructor(REFIID riid, LPVOID *ppv)
|
|||
site->Release();
|
||||
|
||||
return hr;
|
||||
#endif
|
||||
}
|
||||
|
||||
CMenuSite::CMenuSite() :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue