Bug 683802 - Force allocation for sized PWSTRINGs in XPCWrappedNative argument conversion. r=mrbkap

This is the last remaining place where we might pass a non-dipper with useAllocator==false to XPCConvert *and, as a consequence*, do something different within XPCConvert. This paves the way for the elimination of useAllocator for non-dipper types.
This commit is contained in:
Bobby Holley 2011-09-25 15:38:01 +01:00
Родитель 0ef52222c1
Коммит 1d473af0de
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -2991,7 +2991,8 @@ CallMethodHelper::ConvertDependentParams()
if((datum_type.IsPointer() &&
(datum_type.TagPart() == nsXPTType::T_IID ||
datum_type.TagPart() == nsXPTType::T_PSTRING_SIZE_IS)) ||
datum_type.TagPart() == nsXPTType::T_PSTRING_SIZE_IS) ||
datum_type.TagPart() == nsXPTType::T_PWSTRING_SIZE_IS) ||
(isArray && datum_type.TagPart() == nsXPTType::T_CHAR_STR))
{
useAllocator = JS_TRUE;