From 5006383876d5619147a67721a9b3e19529e0f4c2 Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Thu, 10 Nov 2016 15:12:57 +0100 Subject: [PATCH] Make sure that the returned boolean is 1-byte During our tests we have discovered that the marshalled method returns true even when called from background thread. This commit fixes this issue. More info: https://msdn.microsoft.com/en-us/library/t2t3725f(v=vs.80).aspx https://msdn.microsoft.com/en-us/library/75dwhxf7(v=vs.110).aspx Change-Id: I6b9f67aadf07ce35ab498f77b8ef6dd58b0d979e Signed-off-by: Pawel Andruszkiewicz --- ElmSharp/Interop/Interop.Eina.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ElmSharp/Interop/Interop.Eina.cs b/ElmSharp/Interop/Interop.Eina.cs index 266844d..1051b52 100644 --- a/ElmSharp/Interop/Interop.Eina.cs +++ b/ElmSharp/Interop/Interop.Eina.cs @@ -22,6 +22,7 @@ internal static partial class Interop internal static partial class Eina { [DllImport(Libraries.Eina)] + [return: MarshalAs(UnmanagedType.U1)] internal static extern bool eina_main_loop_is(); } } -- 2.7.4