Skip to content

Commit a256d3b

Browse files
committed
Fix wrong interop definition
1 parent 3a0ee55 commit a256d3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ internal static extern int git_commit_create_from_ids(
272272
internal static extern OidSafeHandle git_commit_tree_id(GitObjectSafeHandle commit);
273273

274274
[DllImport(libgit2)]
275-
internal static extern int git_config_delete_entry(ConfigurationSafeHandle cfg, string name);
275+
internal static extern int git_config_delete_entry(
276+
ConfigurationSafeHandle cfg,
277+
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof (StrictUtf8Marshaler))] string name);
276278

277279
[DllImport(libgit2)]
278280
internal static extern int git_config_find_global(GitBuf global_config_path);

0 commit comments

Comments
 (0)