Changes following PR remarks

This commit is contained in:
FrKaram 2018-07-01 13:29:52 +02:00
parent fb8cb8aca9
commit a7424c911b
5 changed files with 7 additions and 22 deletions

6
.gitignore vendored
View File

@ -1,6 +0,0 @@
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################
*.db
*.opendb

View File

@ -1,6 +0,0 @@
build
*.ncb
*.suo
*.vcproj.*
*.vcxproj.user
*.csproj.user

View File

@ -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();
}

View File

@ -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 */

View File

@ -255,7 +255,6 @@ namespace memfs
Host.NamedStreams = true;
Host.PostCleanupWhenModifiedOnly = true;
Host.PassQueryDirectoryFileName = true;
Host.FlushAndPurgeOnCleanup = true;
return STATUS_SUCCESS;
}