Initialize correctly the DMUS_OBJECTDESC local structure.
This commit is contained in:
parent
abe9c975a8
commit
8f62ecba56
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue