dump_FUNCDESC(&(pfd->funcdesc));
MESSAGE("\thelpstring: %s\n", debugstr_w(pfd->HelpString));
- MESSAGE("\tentry: %s\n", debugstr_w(pfd->Entry));
+ MESSAGE("\tentry: %s\n", (pfd->Entry == (void *)-1) ? "invalid" : debugstr_w(pfd->Entry));
}
static void dump_TLBFuncDesc(const TLBFuncDesc * pfd)
{
{
if ( pFuncRec->FKCCIC & 0x2000 )
{
- (*pptfd)->Entry = SysAllocString((WCHAR*)pFuncRec->OptAttr[2]);
+ if (HIWORD(pFuncRec->OptAttr[2]) != 0)
+ ERR("ordinal 0x%08x invalid, HIWORD != 0\n", pFuncRec->OptAttr[2]);
+ (*pptfd)->Entry = (BSTR)pFuncRec->OptAttr[2];
}
else
{
}
}
}
+ else
+ {
+ (*pptfd)->Entry = (BSTR)-1;
+ }
}
}
pCustDataNext = pCustData->next;
TLB_Free(pCustData);
}
- SysFreeString(pFInfo->Entry);
+ if (HIWORD(pFInfo->Entry) != 0 && pFInfo->Entry != (BSTR)-1)
+ SysFreeString(pFInfo->Entry);
SysFreeString(pFInfo->HelpString);
SysFreeString(pFInfo->Name);