dmloader: Remove an unused critical section.
This commit is contained in:
parent
76b64d9a4a
commit
2b54a7ee72
|
@ -99,8 +99,6 @@ struct IDirectMusicLoaderImpl {
|
||||||
struct list *pObjects;
|
struct list *pObjects;
|
||||||
/* settings for certain object classes */
|
/* settings for certain object classes */
|
||||||
struct list *pClassSettings;
|
struct list *pClassSettings;
|
||||||
/* critical section */
|
|
||||||
CRITICAL_SECTION CritSect;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* contained object entry */
|
/* contained object entry */
|
||||||
|
|
|
@ -100,9 +100,6 @@ static ULONG WINAPI IDirectMusicLoaderImpl_IDirectMusicLoader_Release (LPDIRECTM
|
||||||
/* firstly, release the cache */
|
/* firstly, release the cache */
|
||||||
IDirectMusicLoader8_ClearCache (iface, &GUID_DirectMusicAllTypes);
|
IDirectMusicLoader8_ClearCache (iface, &GUID_DirectMusicAllTypes);
|
||||||
/* FIXME: release all allocated entries */
|
/* FIXME: release all allocated entries */
|
||||||
/* destroy critical section */
|
|
||||||
/*This->CritSect.DebugInfo->Spare[0] = 0;
|
|
||||||
DeleteCriticalSection (&This->CritSect); */
|
|
||||||
HeapFree (GetProcessHeap(), 0, This);
|
HeapFree (GetProcessHeap(), 0, This);
|
||||||
unlock_module();
|
unlock_module();
|
||||||
}
|
}
|
||||||
|
@ -864,10 +861,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicLoaderImpl (LPCGUID lpcGUID, LPVOID *ppob
|
||||||
}
|
}
|
||||||
obj->LoaderVtbl = &DirectMusicLoader_Loader_Vtbl;
|
obj->LoaderVtbl = &DirectMusicLoader_Loader_Vtbl;
|
||||||
obj->dwRef = 0; /* will be inited with QueryInterface */
|
obj->dwRef = 0; /* will be inited with QueryInterface */
|
||||||
/* init critical section */
|
|
||||||
/* init cache/alias list */
|
/* init cache/alias list */
|
||||||
/*InitializeCriticalSection (&obj->CritSect);
|
|
||||||
obj->CritSect.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": IDirectMusicLoaderImpl.CritSect"); */
|
|
||||||
obj->pObjects = HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, sizeof(struct list));
|
obj->pObjects = HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, sizeof(struct list));
|
||||||
list_init (obj->pObjects);
|
list_init (obj->pObjects);
|
||||||
/* init settings */
|
/* init settings */
|
||||||
|
|
Loading…
Reference in New Issue