src: dotnet: fix FspFileSystemMountPointF prototype

This commit is contained in:
Bill Zissimopoulos 2017-04-09 17:01:18 -07:00
parent de60e76b1d
commit 5ef1de2647
2 changed files with 3 additions and 3 deletions

View File

@ -185,7 +185,8 @@ namespace Fsp
} }
public String MountPoint() public String MountPoint()
{ {
return IntPtr.Zero != _FileSystem ? Api.FspFileSystemMountPoint(_FileSystem) : null; return IntPtr.Zero != _FileSystem ?
Marshal.PtrToStringUni(Api.FspFileSystemMountPoint(_FileSystem)) : null;
} }
public IntPtr FileSystemHandle() public IntPtr FileSystemHandle()
{ {

View File

@ -441,8 +441,7 @@ namespace Fsp.Interop
internal delegate Int32 FspFileSystemStopDispatcher( internal delegate Int32 FspFileSystemStopDispatcher(
IntPtr FileSystem); IntPtr FileSystem);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.LPWStr)] internal delegate IntPtr FspFileSystemMountPointF(
internal delegate String FspFileSystemMountPointF(
IntPtr FileSystem); IntPtr FileSystem);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void FspFileSystemSetOperationGuardStrategyF( internal delegate void FspFileSystemSetOperationGuardStrategyF(