Initialize correctly the DMUS_OBJECTDESC local structure.

This commit is contained in:
Raphael Junqueira 2004-04-02 19:14:08 +00:00 committed by Alexandre Julliard
parent abe9c975a8
commit 8f62ecba56
1 changed files with 3 additions and 1 deletions

View File

@ -504,6 +504,8 @@ HRESULT WINAPI IDirectMusicScriptImpl_IPersistStream_Load (LPPERSISTSTREAM iface
IDirectMusicObject* pObject = NULL;
DMUS_OBJECTDESC desc;
ZeroMemory ((LPVOID)&desc, sizeof(DMUS_OBJECTDESC));
desc.dwSize = sizeof(DMUS_OBJECTDESC);
desc.dwValidData = DMUS_OBJ_STREAM | DMUS_OBJ_CLASS;
desc.guidClass = CLSID_DirectMusicContainer;
desc.pStream = NULL;