Commit e59ac81c authored by Alexandre Julliard's avatar Alexandre Julliard

msdmo: Don't use an interface pointer for an internal function.

parent 43130843
...@@ -333,12 +333,10 @@ lend: ...@@ -333,12 +333,10 @@ lend:
/************************************************************************** /**************************************************************************
* IEnumDMO_Destructor * IEnumDMOImpl_Destructor
*/ */
static BOOL IEnumDMO_Destructor(IEnumDMO* iface) static BOOL IEnumDMOImpl_Destructor(IEnumDMOImpl* This)
{ {
IEnumDMOImpl *This = impl_from_IEnumDMO(iface);
TRACE("%p\n", This); TRACE("%p\n", This);
if (This->hkey) if (This->hkey)
...@@ -418,7 +416,7 @@ static IEnumDMO * IEnumDMO_Constructor( ...@@ -418,7 +416,7 @@ static IEnumDMO * IEnumDMO_Constructor(
lerr: lerr:
if(!ret) if(!ret)
{ {
IEnumDMO_Destructor((IEnumDMO*)lpedmo); IEnumDMOImpl_Destructor(lpedmo);
HeapFree(GetProcessHeap(),0,lpedmo); HeapFree(GetProcessHeap(),0,lpedmo);
lpedmo = NULL; lpedmo = NULL;
} }
...@@ -477,7 +475,7 @@ static ULONG WINAPI IEnumDMO_fnRelease(IEnumDMO * iface) ...@@ -477,7 +475,7 @@ static ULONG WINAPI IEnumDMO_fnRelease(IEnumDMO * iface)
if (!refCount) if (!refCount)
{ {
IEnumDMO_Destructor((IEnumDMO*)This); IEnumDMOImpl_Destructor(This);
HeapFree(GetProcessHeap(),0,This); HeapFree(GetProcessHeap(),0,This);
} }
return refCount; return refCount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment