Commit d7d7e3bc authored by Rolf Kalbermatter's avatar Rolf Kalbermatter Committed by Alexandre Julliard

Fix crash when constructing ANSI interface pointer to IExtractIcon,

found by Uwe Bonnes. Add some traces to the constructors.
parent 064c48a6
......@@ -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
......
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