dmusic: Don't crash on NULL in IDirectMusicObject::GetDescriptor.

This commit is contained in:
Michael Stefaniuc 2014-01-05 23:51:17 +01:00 committed by Alexandre Julliard
parent fda99c0fcc
commit fe0d2a2ba7
1 changed files with 3 additions and 1 deletions

View File

@ -181,7 +181,9 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_GetDescripto
TRACE("(%p/%p)->(%p)\n", iface, This, pDesc);
/* I think we shouldn't return pointer here since then values can be changed; it'd be a mess */
if (!pDesc)
return E_POINTER;
memcpy (pDesc, This->pDesc, This->pDesc->dwSize);
return S_OK;