diff options
author | nulltoken <emeric.fermas@gmail.com> | 2015-05-16 16:10:22 +0300 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2015-05-29 01:07:47 +0300 |
commit | 56b908c68a89511a4351edf21faaf8ee2e012469 (patch) | |
tree | ff66ad881984baa566242b9d8bac6db5548f3a5a | |
parent | 73740ffed9574202bed2e74dfafb5ece021ae892 (diff) |
Fix wrong interop definition
-rw-r--r-- | LibGit2Sharp/Core/NativeMethods.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LibGit2Sharp/Core/NativeMethods.cs b/LibGit2Sharp/Core/NativeMethods.cs index a9453529..720f083c 100644 --- a/LibGit2Sharp/Core/NativeMethods.cs +++ b/LibGit2Sharp/Core/NativeMethods.cs @@ -272,7 +272,9 @@ namespace LibGit2Sharp.Core internal static extern OidSafeHandle git_commit_tree_id(GitObjectSafeHandle commit); [DllImport(libgit2)] - internal static extern int git_config_delete_entry(ConfigurationSafeHandle cfg, string name); + internal static extern int git_config_delete_entry( + ConfigurationSafeHandle cfg, + [MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof (StrictUtf8Marshaler))] string name); [DllImport(libgit2)] internal static extern int git_config_find_global(GitBuf global_config_path); |