mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 18:12:58 +00:00
[RSHELL]
* Fix compiling with the system classes selected instead of the custom ones. CORE-7586 svn path=/branches/shell-experiments/; revision=62962
This commit is contained in:
parent
60334b103a
commit
a418d8b657
3 changed files with 16 additions and 12 deletions
|
@ -28,6 +28,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(menusite);
|
|||
extern "C"
|
||||
HRESULT WINAPI CMenuSite_Constructor(REFIID riid, LPVOID *ppv)
|
||||
{
|
||||
HRESULT hr;
|
||||
#if USE_SYSTEM_MENUSITE
|
||||
hr = CoCreateInstance(CLSID_MenuBandSite,
|
||||
NULL,
|
||||
|
@ -41,13 +42,13 @@ HRESULT WINAPI CMenuSite_Constructor(REFIID riid, LPVOID *ppv)
|
|||
if (!site)
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
HRESULT hr = site->QueryInterface(riid, ppv);
|
||||
hr = site->QueryInterface(riid, ppv);
|
||||
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
site->Release();
|
||||
#endif
|
||||
|
||||
return hr;
|
||||
#endif
|
||||
}
|
||||
|
||||
CMenuSite::CMenuSite() :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue