Fix crash when constructing ANSI interface pointer to IExtractIcon,
found by Uwe Bonnes. Add some traces to the constructors.
This commit is contained in:
parent
064c48a607
commit
d7d7e3bc33
|
@ -63,6 +63,8 @@ IExtractIconW* IExtractIconW_Constructor(LPCITEMIDLIST pidl)
|
||||||
{
|
{
|
||||||
IExtractIconWImpl* ei;
|
IExtractIconWImpl* ei;
|
||||||
|
|
||||||
|
TRACE("%p\n", pidl);
|
||||||
|
|
||||||
ei = (IExtractIconWImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IExtractIconWImpl));
|
ei = (IExtractIconWImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IExtractIconWImpl));
|
||||||
ei->ref=1;
|
ei->ref=1;
|
||||||
ICOM_VTBL(ei) = &eivt;
|
ICOM_VTBL(ei) = &eivt;
|
||||||
|
@ -285,8 +287,10 @@ static struct ICOM_VTABLE(IExtractIconW) eivt =
|
||||||
IExtractIconA* IExtractIconA_Constructor(LPCITEMIDLIST pidl)
|
IExtractIconA* IExtractIconA_Constructor(LPCITEMIDLIST pidl)
|
||||||
{
|
{
|
||||||
ICOM_THIS(IExtractIconWImpl, IExtractIconW_Constructor(pidl));
|
ICOM_THIS(IExtractIconWImpl, IExtractIconW_Constructor(pidl));
|
||||||
|
IExtractIconA *eia = (IExtractIconA *)&This->lpvtblExtractIconA;
|
||||||
|
|
||||||
return (IExtractIconA *)This->lpvtblExtractIconA;
|
TRACE("(%p)->(%p)\n", This, eia);
|
||||||
|
return eia;
|
||||||
}
|
}
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* IExtractIconA_QueryInterface
|
* IExtractIconA_QueryInterface
|
||||||
|
|
Loading…
Reference in New Issue