fix that shaver needs for wrapped JS object doing QI semantics

This commit is contained in:
jband%netscape.com 1999-09-07 01:48:13 +00:00
Родитель a509302246
Коммит 2cb747fe19
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -610,8 +610,13 @@ pre_call_clean_up:
uint8 arg_num = param.GetInterfaceIsArgNumber();
const nsXPTParamInfo& param = info->GetParam(arg_num);
const nsXPTType& type = param.GetType();
if(!type.IsPointer() || type.TagPart() != nsXPTType::T_IID ||
!(conditional_iid = *((nsID**)params[arg_num].val.p)))
if(!type.IsPointer() || type.TagPart() != nsXPTType::T_IID)
break;
if(param.IsOut())
conditional_iid = *((nsID**)params[arg_num].val.p);
else
conditional_iid = (nsID*) params[arg_num].val.p;
if(!conditional_iid)
break;
}
else if(type.IsPointer() && !param.IsShared())