[NUI] Change from StdCall to Cdecl
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 22 Aug 2022 02:15:00 +0000 (11:15 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 22 Aug 2022 09:48:10 +0000 (18:48 +0900)
When user add Window.FocusChanged in emulator it crashes

src/Tizen.NUI/src/public/Window/WindowEvent.cs

index eb67dee..b92cd64 100755 (executable)
@@ -68,7 +68,7 @@ namespace Tizen.NUI
         private TouchDataSignal interceptTouchDataSignal;
         private TouchSignal interceptTouchSignal;
 
-        [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+        [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         private delegate void WindowFocusChangedEventCallbackType(IntPtr window, bool focusGained);
         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
         private delegate bool RootLayerTouchDataCallbackType(IntPtr view, IntPtr touchData);