Fix incorrect pointer marshalling from Variant to managed runtime
#1992
This commit is contained in:
@@ -1208,6 +1208,10 @@ void* MUtils::VariantToManagedArgPtr(Variant& value, MType* type, bool& failed)
|
||||
object = nullptr;
|
||||
return object;
|
||||
}
|
||||
case MTypes::Ptr:
|
||||
if (value.Type.Type == VariantType::Null)
|
||||
return nullptr;
|
||||
return (void*)value;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user