- handle = avahi_service_browser_new (client.Handle, iface, (int) proto, typePtr, domainPtr, flags,
- cb, IntPtr.Zero);
+ handle = avahi_service_browser_new (client.Handle, iface, (int) proto,
+ Utility.StringToBytes (type), Utility.StringToBytes (domain),
+ flags, cb, IntPtr.Zero);
+
+ if (handle == IntPtr.Zero)
+ client.ThrowError ();