From 5ca58e74d71e2e91a9b0a8b549b3cffad232f6f9 Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Fri, 19 Aug 2022 10:51:34 +0900 Subject: [PATCH] [NUI] Make sure that Interop return type is bool Marshal's bool is mapped to 4byte in default. So if native-code return boolean type, the datasize is mismatched and make problems This patch will fix this problem --- src/Tizen.NUI/src/internal/Interop/Interop.Window.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs index 32a791b..a85b913 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs @@ -282,6 +282,7 @@ namespace Tizen.NUI public static extern void Maximize(global::System.Runtime.InteropServices.HandleRef window, bool maximize); [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_IsMaximized")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] public static extern bool IsMaximized(global::System.Runtime.InteropServices.HandleRef window); [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_Set_Maximum_Size")] @@ -291,6 +292,7 @@ namespace Tizen.NUI public static extern void Minimize(global::System.Runtime.InteropServices.HandleRef window, bool minimize); [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_IsMinimized")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] public static extern bool IsMinimized(global::System.Runtime.InteropServices.HandleRef window); [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_Set_Minimum_Size")] -- 2.7.4