From: joogab.yun Date: Fri, 19 Aug 2022 01:51:34 +0000 (+0900) Subject: [NUI] Make sure that Interop return type is bool X-Git-Tag: accepted/tizen/unified/20231205.024657~795 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ca58e74d71e2e91a9b0a8b549b3cffad232f6f9;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [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 --- 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")]