[NUI] Add missing code
authorBowon Ryu <bowon.ryu@samsung.com>
Wed, 30 Aug 2023 11:14:42 +0000 (20:14 +0900)
committerJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Mon, 11 Sep 2023 07:30:31 +0000 (16:30 +0900)
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 <bowon.ryu@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.Clipboard.cs

index 1a306d3..2e87e99 100755 (executable)
@@ -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")]