summaryrefslogtreecommitdiffstats
path: root/mono/DBusType/Dict.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mono/DBusType/Dict.cs')
-rw-r--r--mono/DBusType/Dict.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mono/DBusType/Dict.cs b/mono/DBusType/Dict.cs
index f5c76b4c..660cac57 100644
--- a/mono/DBusType/Dict.cs
+++ b/mono/DBusType/Dict.cs
@@ -41,8 +41,9 @@ namespace DBus.DBusType
// Get the argument type and get the value
Type elementType = (Type) DBus.Arguments.DBusTypes[(char) dbus_message_iter_get_arg_type(dictIter)];
- object [] pars = new Object[1];
+ object [] pars = new Object[2];
pars[0] = dictIter;
+ pars[1] = service;
DBusType.IDBusType dbusType = (DBusType.IDBusType) Activator.CreateInstance(elementType, pars);
this.val.Add(key, dbusType);
} while (dbus_message_iter_next(dictIter));