mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
browseui: Give a name and delete the critical sections.
This commit is contained in:
parent
7480dc0af1
commit
51ab24dd66
@ -57,6 +57,7 @@ static inline CompCatCacheDaemon *impl_from_IRunnableTask(IRunnableTask *iface)
|
||||
static void CompCatCacheDaemon_Destructor(CompCatCacheDaemon *This)
|
||||
{
|
||||
TRACE("destroying %p\n", This);
|
||||
This->cs.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&This->cs);
|
||||
heap_free(This);
|
||||
BROWSEUI_refCount--;
|
||||
@ -154,6 +155,7 @@ HRESULT CompCatCacheDaemon_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
|
||||
This->IRunnableTask_iface.lpVtbl = &CompCatCacheDaemonVtbl;
|
||||
This->refCount = 1;
|
||||
InitializeCriticalSection(&This->cs);
|
||||
This->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": CompCatCacheDaemon.cs");
|
||||
|
||||
TRACE("returning %p\n", This);
|
||||
*ppOut = (IUnknown *)This;
|
||||
|
@ -260,6 +260,8 @@ static void ProgressDialog_Destructor(ProgressDialog *This)
|
||||
heap_free(This->cancelMsg);
|
||||
heap_free(This->title);
|
||||
heap_free(This);
|
||||
This->cs.DebugInfo->Spare[0] = 0;
|
||||
DeleteCriticalSection(&This->cs);
|
||||
BROWSEUI_refCount--;
|
||||
}
|
||||
|
||||
@ -503,6 +505,7 @@ HRESULT ProgressDialog_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
|
||||
This->IProgressDialog_iface.lpVtbl = &ProgressDialogVtbl;
|
||||
This->refCount = 1;
|
||||
InitializeCriticalSection(&This->cs);
|
||||
This->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ProgressDialog.cs");
|
||||
|
||||
TRACE("returning %p\n", This);
|
||||
*ppOut = (IUnknown *)This;
|
||||
|
Loading…
Reference in New Issue
Block a user