diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-04-19 16:02:24 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-04-19 16:02:24 +0000 |
commit | 3213532f305ca9aad647e84c45ecd7784b22a333 (patch) | |
tree | 0fd25dcacea77ee3136ce4166d1abfba23c40624 /mono/Message.cs | |
parent | 8e3ad4c75806f3c1456be8c3097899799ab16c47 (diff) |
2006-04-19 John (J5) Palmieri <johnp@redhat.com>
* mono/Connection.cs, mono/Message.cs: Check Target type
Patch from Aaron Bockover (abockover at novell.com)
Diffstat (limited to 'mono/Message.cs')
-rw-r--r-- | mono/Message.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/Message.cs b/mono/Message.cs index 944e3f92..f9556b5d 100644 --- a/mono/Message.cs +++ b/mono/Message.cs @@ -110,7 +110,7 @@ namespace DBus if (slot > -1) { // If we already have a Message object associated with this rawMessage then return it IntPtr rawThis = dbus_message_get_data(rawMessage, slot); - if (rawThis != IntPtr.Zero) + if (rawThis != IntPtr.Zero && ((GCHandle)rawThis).Target == typeof(DBus.Message)) return (DBus.Message) ((GCHandle)rawThis).Target; } // If it doesn't exist then create a new Message around it |