зеркало из https://github.com/mozilla/gecko-dev.git
fix that shaver needs for wrapped JS object doing QI semantics
This commit is contained in:
Родитель
a509302246
Коммит
2cb747fe19
|
@ -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())
|
||||
|
|
Загрузка…
Ссылка в новой задаче