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

@ -63,6 +63,8 @@ IExtractIconW* IExtractIconW_Constructor(LPCITEMIDLIST pidl)
{
IExtractIconWImpl* ei;
TRACE("%p\n", pidl);
ei = (IExtractIconWImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IExtractIconWImpl));
ei->ref=1;
ICOM_VTBL(ei) = &eivt;
@ -285,8 +287,10 @@ static struct ICOM_VTABLE(IExtractIconW) eivt =
IExtractIconA* IExtractIconA_Constructor(LPCITEMIDLIST 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