@@ -36,8 +36,8 @@ internal delegate void DispatchFunction(
3636
3737 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
3838 internal delegate void CallBackFunction (
39- [ MarshalAs ( UnmanagedType . LPStr ) ] string id ,
40- [ MarshalAs ( UnmanagedType . LPStr ) ] string req ,
39+ [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string id ,
40+ [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string req ,
4141 IntPtr arg ) ;
4242
4343 internal static class Bindings
@@ -115,7 +115,7 @@ internal static class Bindings
115115 /// <param name="webview">The webview to update.</param>
116116 /// <param name="title">New webview title.</param>
117117 [ DllImport ( DllFile , CallingConvention = CallingConvention . Cdecl ) ]
118- internal extern static void webview_set_title ( IntPtr webview , [ MarshalAs ( UnmanagedType . LPStr ) ] string title ) ;
118+ internal extern static void webview_set_title ( IntPtr webview , [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string title ) ;
119119
120120 /// <summary>
121121 /// <para>Updates native window size.</para>
@@ -145,7 +145,7 @@ internal static class Bindings
145145 /// <param name="webview">The webview to update</param>
146146 /// <param name="url">The url to navigate to</param>
147147 [ DllImport ( DllFile , CallingConvention = CallingConvention . Cdecl ) ]
148- internal extern static void webview_navigate ( IntPtr webview , [ MarshalAs ( UnmanagedType . LPStr ) ] string url ) ;
148+ internal extern static void webview_navigate ( IntPtr webview , [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string url ) ;
149149
150150 /// <summary>
151151 /// <para>
@@ -161,7 +161,7 @@ internal static class Bindings
161161 /// <param name="webview">The webview to execute the javascript.</param>
162162 /// <param name="js">The javascript to execute.</param>
163163 [ DllImport ( DllFile , CallingConvention = CallingConvention . Cdecl ) ]
164- internal extern static void webview_init ( IntPtr webview , [ MarshalAs ( UnmanagedType . LPStr ) ] string js ) ;
164+ internal extern static void webview_init ( IntPtr webview , [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string js ) ;
165165
166166 /// <summary>
167167 /// <para>
@@ -177,7 +177,7 @@ internal static class Bindings
177177 /// <param name="webview">The webview to execute the javascript in.</param>
178178 /// <param name="js">The javascript to evaluate.</param>
179179 [ DllImport ( DllFile , CallingConvention = CallingConvention . Cdecl ) ]
180- internal extern static void webview_eval ( IntPtr webview , [ MarshalAs ( UnmanagedType . LPStr ) ] string js ) ;
180+ internal extern static void webview_eval ( IntPtr webview , [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string js ) ;
181181
182182 /// <summary>
183183 /// <para>
@@ -216,7 +216,7 @@ internal static class Bindings
216216 [ DllImport ( DllFile , CallingConvention = CallingConvention . Cdecl ) ]
217217 internal extern static void webview_bind (
218218 IntPtr webview ,
219- [ MarshalAs ( UnmanagedType . LPStr ) ] string name ,
219+ [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string name ,
220220 CallBackFunction callback ,
221221 IntPtr arg ) ;
222222
@@ -238,9 +238,9 @@ internal extern static void webview_bind(
238238 /// <param name="resultJson">The json data to return to the webview.</param>
239239 [ DllImport ( DllFile , CallingConvention = CallingConvention . Cdecl ) ]
240240 internal extern static void webview_return ( IntPtr webview ,
241- [ MarshalAs ( UnmanagedType . LPStr ) ] string id ,
241+ [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string id ,
242242 RPCResult result ,
243- [ MarshalAs ( UnmanagedType . LPStr ) ] string resultJson ) ;
243+ [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string resultJson ) ;
244244
245245 /*
246246 Not mapped:
0 commit comments