From 455e0b71e5bce92867f0f301fd583596f80810a9 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Mon, 12 Mar 2018 13:56:58 +0100 Subject: [PATCH] Fixing csharp wrapper --- wrappers/csharp/wrapper_impl.mustache | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wrappers/csharp/wrapper_impl.mustache b/wrappers/csharp/wrapper_impl.mustache index f2d1b33de..ab4c5775d 100644 --- a/wrappers/csharp/wrapper_impl.mustache +++ b/wrappers/csharp/wrapper_impl.mustache @@ -183,7 +183,11 @@ namespace Linphone obj.nativePtr = ptr; obj.handle = GCHandle.Alloc(obj, GCHandleType.WeakTrackResurrection); objPtr = GCHandle.ToIntPtr(obj.handle); - belle_sip_object_data_set(ptr, "cs_obj", objPtr, IntPtr.Zero); +#if WINDOWS_UWP + belle_sip_object_data_set(ptr, "cs_obj", objPtr, IntPtr.Zero); +#else + belle_sip_object_data_set(ptr, "cs_obj", objPtr, null); +#endif return obj; }