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

View File

@ -503,7 +503,9 @@ HRESULT WINAPI IDirectMusicScriptImpl_IPersistStream_Load (LPPERSISTSTREAM iface
case FOURCC_RIFF: {
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;