[ElmSharp] Fixed the crash issue of Calendar 68/164468/1
authorRinaYou <rina6350.you@samsung.com>
Tue, 19 Dec 2017 07:51:43 +0000 (16:51 +0900)
committerRinaYou <rina6350.you@samsung.com>
Tue, 19 Dec 2017 07:52:46 +0000 (16:52 +0900)
Change-Id: I4eefd10ccc749b002c355027b990345fc912e42b

src/ElmSharp/ElmSharp/Calendar.cs
src/ElmSharp/Interop/Interop.Elementary.CalendarView.cs [changed mode: 0644->0755]

index 5f3f18b..3d4a429 100755 (executable)
@@ -19,6 +19,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Runtime.InteropServices;
 
+
 namespace ElmSharp
 {
     /// <summary>
@@ -191,7 +192,7 @@ namespace ElmSharp
                 _cacheDisplayedMonth = currentDisplayedMonth;
             };
 
-            _calendarFormat = (t) => { return _dateFormatDelegate(t); };
+            _calendarFormat = (ref Interop.Libc.SystemTime t) => { return _dateFormatDelegate(t); };
         }
 
         /// <summary>
old mode 100644 (file)
new mode 100755 (executable)
index 6885035..a0a3690
@@ -100,7 +100,7 @@ internal static partial class Interop
         internal static extern void elm_calendar_marks_clear(IntPtr obj);
 
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
-        internal delegate string Elm_Calendar_Format_Cb(Libc.SystemTime date);
+        internal delegate string Elm_Calendar_Format_Cb(ref Libc.SystemTime date);
 
         [DllImport(Libraries.Elementary)]
         internal static extern void elm_calendar_format_function_set(IntPtr obj, Elm_Calendar_Format_Cb format_function);