[SHELL32]
[reactos.git] / reactos / dll / win32 / shell32 / shellmenu / CMenuBand.cpp
index 5f8fc3b..323e9a6 100644 (file)
@@ -108,7 +108,8 @@ HRESULT STDMETHODCALLTYPE  CMenuBand::GetMenuInfo(
 
     if (ppsmc)
     {
-        m_psmc->AddRef();
+        if (m_psmc)
+            m_psmc->AddRef();
         *ppsmc = m_psmc;
     }