mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 07:30:56 +00:00
dpnet: Don't return partially initialized object.
This commit is contained in:
parent
a767c8399b
commit
817db8e361
|
@ -253,6 +253,8 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_Duplicate(IDirectPlay8Address *ifa
|
||||||
|
|
||||||
if(hr != S_OK)
|
if(hr != S_OK)
|
||||||
{
|
{
|
||||||
|
IDirectPlay8Address_Release(dup);
|
||||||
|
dup = NULL;
|
||||||
ERR("Failed to copy component: %s - 0x%08x\n", debugstr_w(entry->name), hr);
|
ERR("Failed to copy component: %s - 0x%08x\n", debugstr_w(entry->name), hr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue