WMP fixes

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@509 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
psperl
2007-10-03 19:53:01 +00:00
parent f83fd94916
commit c7c33e29f4

View File

@ -340,10 +340,13 @@ STDMETHODIMP CProjectMwmp::Create(HWND hwndParent)
//////////////////////////////////////////////////////////////////////////////
STDMETHODIMP CProjectMwmp::Destroy()
{
m_hwndParent = NULL;
starting = true;
delete(globalPM);
return S_OK;
if (!starting)
{
m_hwndParent = NULL;
starting = true;
delete(globalPM);
return S_OK;
}
}
@ -379,7 +382,7 @@ char* ConvertBSTRToLPSTR (BSTR bstrIn)
//////////////////////////////////////////////////////////////////////////////
STDMETHODIMP CProjectMwmp::NotifyNewMedia(IWMPMedia *pMedia)
{
if (starting == false)
if (starting == false && pMedia != NULL)
{
CComBSTR name;
pMedia->get_name(&name);