From b4639b40f3852f20f743cbe91cde3567cf013ce7 Mon Sep 17 00:00:00 2001 From: Gerd Heber Date: Fri, 28 Jun 2019 14:16:55 -0500 Subject: [PATCH] Update H5Dpublic.cs Fixed the DLL references from issue #161 --- HDF5/H5Dpublic.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HDF5/H5Dpublic.cs b/HDF5/H5Dpublic.cs index 486bcac..d419f3d 100644 --- a/HDF5/H5Dpublic.cs +++ b/HDF5/H5Dpublic.cs @@ -725,7 +725,7 @@ public static extern herr_t read /// Buffer containing the chunk read from the dataset /// Returns a non-negative value if successful; otherwise /// returns a negative value. - [DllImport(Constants.HLDLLFileName, EntryPoint = "H5Dread_chunk", + [DllImport(Constants.DLLFileName, EntryPoint = "H5Dread_chunk", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity, SecuritySafeCritical] public static extern herr_t read_chunk @@ -870,7 +870,7 @@ public static extern herr_t write /// Buffer containing data to be written to the file /// Returns a non-negative value if successful; otherwise /// returns a negative value. - [DllImport(Constants.HLDLLFileName, EntryPoint = "H5Dwrite_chunk", + [DllImport(Constants.DLLFileName, EntryPoint = "H5Dwrite_chunk", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity, SecuritySafeCritical] public static extern herr_t write_chunk