Fix crash when constructing ANSI interface pointer to IExtractIcon,

found by Uwe Bonnes.
Add some traces to the constructors.
This commit is contained in:
Rolf Kalbermatter 2002-12-15 01:13:45 +00:00 committed by Alexandre Julliard
parent 064c48a607
commit d7d7e3bc33
1 changed files with 6 additions and 2 deletions

View File

@ -62,6 +62,8 @@ static struct ICOM_VTABLE(IPersistFile) pfvt;
IExtractIconW* IExtractIconW_Constructor(LPCITEMIDLIST pidl)
{
IExtractIconWImpl* ei;
TRACE("%p\n", pidl);
ei = (IExtractIconWImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IExtractIconWImpl));
ei->ref=1;
@ -285,8 +287,10 @@ static struct ICOM_VTABLE(IExtractIconW) eivt =
IExtractIconA* IExtractIconA_Constructor(LPCITEMIDLIST pidl)
{
ICOM_THIS(IExtractIconWImpl, IExtractIconW_Constructor(pidl));
return (IExtractIconA *)This->lpvtblExtractIconA;
IExtractIconA *eia = (IExtractIconA *)&This->lpvtblExtractIconA;
TRACE("(%p)->(%p)\n", This, eia);
return eia;
}
/**************************************************************************
* IExtractIconA_QueryInterface