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()
{
return IntPtr.Zero != _FileSystem ? Api.FspFileSystemMountPoint(_FileSystem) : null;
return IntPtr.Zero != _FileSystem ?
Marshal.PtrToStringUni(Api.FspFileSystemMountPoint(_FileSystem)) : null;
}
public IntPtr FileSystemHandle()
{

View File

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