From: Bowon Ryu Date: Wed, 30 Aug 2023 11:14:42 +0000 (+0900) Subject: [NUI] Add missing code X-Git-Tag: submit/tizen/20230911.073618~1^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78770525c20d39c57d98c3f12f1730da2e63a49e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add missing code ref : 5ca58e74d71e2e91a9b0a8b549b3cffad232f6f9 * 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 Signed-off-by: Bowon Ryu --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Clipboard.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Clipboard.cs index 1a306d36a..2e87e9976 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Clipboard.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Clipboard.cs @@ -25,6 +25,7 @@ namespace Tizen.NUI public static extern global::System.IntPtr Get(); [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Clipboard_SetData")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] public static extern bool SetData(global::System.Runtime.InteropServices.HandleRef clipboard, string mimeType, string data); [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Clipboard_GetData")]