[remoting] Pass correct object to invoke of IRemotingTypeInfo.CanCastTo
authorAleksey Kliger <aleksey@xamarin.com>
Fri, 24 Mar 2017 22:47:38 +0000 (18:47 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Fri, 24 Mar 2017 23:10:14 +0000 (19:10 -0400)
commiteeb5d4c670b18885d4f575136e348df324c46de8
tree0a5ef7a616ca0bd231ee7b557cbe4c2d6fd607c1
parent17aa73d0ae216529b59d5aa3d0ee68007bb035c4
[remoting] Pass correct object to invoke of IRemotingTypeInfo.CanCastTo

Pass the payload of the coop handle as the 'this' object, not the handle
itself.

Add asserts in ves_icall_Remoting_RealProxy_InternalGetProxyType that
remote_class and the proxy_class are non-NULL.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=53890
mono/metadata/icall.c
mono/metadata/object.c