* 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:
David Quintana 2014-04-25 10:45:28 +00:00
parent 60334b103a
commit a418d8b657
3 changed files with 16 additions and 12 deletions

View file

@ -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() :