mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-14 15:52:47 -05:00
Changes following PR remarks
This commit is contained in:
@ -353,10 +353,10 @@ namespace Fsp
|
||||
return Api.SetDebugLogFile(FileName);
|
||||
}
|
||||
/// <summary>
|
||||
/// Return the installed version for WinFSP
|
||||
/// Return the installed version of WinFsp.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static Version GetFspVersion()
|
||||
public static Version Version()
|
||||
{
|
||||
return Api.GetFspVersion();
|
||||
}
|
||||
|
@ -955,9 +955,9 @@ namespace Fsp.Interop
|
||||
{
|
||||
fixed (Byte *C = CurrentReparseData)
|
||||
fixed (Byte *R = ReplaceReparseData)
|
||||
return _FspFileSystemCanReplaceReparsePoint(
|
||||
(IntPtr)C, (UIntPtr)CurrentReparseData.Length,
|
||||
(IntPtr)R, (UIntPtr)ReplaceReparseData.Length);
|
||||
return _FspFileSystemCanReplaceReparsePoint(
|
||||
(IntPtr)C, (UIntPtr)CurrentReparseData.Length,
|
||||
(IntPtr)R, (UIntPtr)ReplaceReparseData.Length);
|
||||
}
|
||||
|
||||
internal static Int32 SetDebugLogFile(String FileName)
|
||||
@ -982,11 +982,9 @@ namespace Fsp.Interop
|
||||
|
||||
internal static Version GetFspVersion()
|
||||
{
|
||||
UInt32 Version = 0, VersionMajor, VersionMinor;
|
||||
UInt32 Version = 0;
|
||||
FspVersion(out Version);
|
||||
VersionMajor = Version >> 16;
|
||||
VersionMinor = Version & 0xFFFF;
|
||||
return new System.Version((Int32)VersionMajor, (Int32)VersionMinor);
|
||||
return new System.Version((Int32)Version >> 16, (Int32)Version & 0xFFFF);
|
||||
}
|
||||
|
||||
/* initialization */
|
||||
|
Reference in New Issue
Block a user