changeset 23395:0ff039835f0f

Fix fallback on the default GET_TYPE for unvailable/disabled properties.
author albeu
date Wed, 30 May 2007 06:39:21 +0000
parents d4e8613ddc95
children 8412921b363c
files m_property.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/m_property.c	Tue May 29 22:14:41 2007 +0000
+++ b/m_property.c	Wed May 30 06:39:21 2007 +0000
@@ -38,7 +38,7 @@
         prop = m_option_list_find(prop_list, name);
     if(!prop) return M_PROPERTY_UNKNOWN;
     r = ((m_property_ctrl_f)prop->p)(prop,action,arg,ctx);
-    if(action == M_PROPERTY_GET_TYPE && r == M_PROPERTY_NOT_IMPLEMENTED) {
+    if(action == M_PROPERTY_GET_TYPE && r < 0) {
         if(!arg) return M_PROPERTY_ERROR;
         *(m_option_t**)arg = prop;
         return M_PROPERTY_OK;