From: Pawel Andruszkiewicz Date: Thu, 10 Nov 2016 14:12:57 +0000 (+0100) Subject: Make sure that the returned boolean is 1-byte X-Git-Tag: submit/trunk/20170823.075128~110^2~230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98c70851b1b1d640295768e6050c90ed61889e7c;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git 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 --- diff --git a/src/ElmSharp/Interop/Interop.Eina.cs b/src/ElmSharp/Interop/Interop.Eina.cs index 266844d..1051b52 100644 --- a/src/ElmSharp/Interop/Interop.Eina.cs +++ b/src/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(); } }