Author: jbevain
Date: 2007-11-20 11:24:30 -0500 (Tue, 20 Nov 2007)
New Revision: 89988

Modified:
   trunk/moon/plugin/plugin-class.cpp
Log:
fix this particular one

Modified: trunk/moon/plugin/plugin-class.cpp
===================================================================
--- trunk/moon/plugin/plugin-class.cpp  2007-11-20 16:16:48 UTC (rev 89987)
+++ trunk/moon/plugin/plugin-class.cpp  2007-11-20 16:24:30 UTC (rev 89988)
@@ -1789,7 +1789,7 @@
 {
        if (NPVARIANT_IS_OBJECT (*value)){
                MoonlightObject *obj = (MoonlightObject*) NPVARIANT_TO_OBJECT 
(*value);
-
+               return true;
                if (obj->moonlight_type >= Type::DEPENDENCY_OBJECT || 
obj->moonlight_type == Type::INVALID) {
                        MoonlightDependencyObjectObject *depobj = 
(MoonlightDependencyObjectObject*) NPVARIANT_TO_OBJECT (*value);
                        dob->SetValue (p, Value(depobj->GetDependencyObject 
()));
@@ -1984,8 +1984,10 @@
                char *name = (char *) NPVARIANT_TO_STRING 
(args[0]).utf8characters;
 
                DependencyObject *element = dob->FindName (name);
-               if (!element)
-                       INVOKE_EXCEPTION ("findName");
+               if (!element) {
+                       NULL_TO_NPVARIANT (*result);
+                       return true;
+               }
 
                OBJECT_TO_NPVARIANT (EventObjectCreateWrapper (instance, 
element), *result);
                return true;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to