mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
DllCanUnloadNow fix.
Fixed ObjRefCount for EnumPins.
This commit is contained in:
parent
b96eb4d3b0
commit
30d5120a35
@ -58,6 +58,7 @@ HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** pp
|
||||
pEnumPins->uIndex = 0;
|
||||
CopyMemory(&pEnumPins->enumPinDetails, pDetails, sizeof(ENUMPINDETAILS));
|
||||
*ppEnum = (IEnumPins *)(&pEnumPins->lpVtbl);
|
||||
ObjectRefCount(TRUE);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@ -103,10 +104,9 @@ static ULONG WINAPI IEnumPinsImpl_Release(IEnumPins * iface)
|
||||
if (!refCount)
|
||||
{
|
||||
CoTaskMemFree(This);
|
||||
return 0;
|
||||
ObjectRefCount(FALSE);
|
||||
}
|
||||
else
|
||||
return refCount;
|
||||
return refCount;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI IEnumPinsImpl_Next(IEnumPins * iface, ULONG cPins, IPin ** ppPins, ULONG * pcFetched)
|
||||
|
@ -195,7 +195,7 @@ HRESULT WINAPI QCAP_DllCanUnloadNow(void)
|
||||
{
|
||||
TRACE("\n");
|
||||
|
||||
if (objects_ref == 0 || server_locks == 0)
|
||||
if (objects_ref == 0 && server_locks == 0)
|
||||
return S_OK;
|
||||
return S_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user