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); return Api.SetDebugLogFile(FileName);
} }
/// <summary> /// <summary>
/// Return the installed version for WinFSP /// Return the installed version of WinFsp.
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public static Version GetFspVersion() public static Version Version()
{ {
return Api.GetFspVersion(); return Api.GetFspVersion();
} }

View File

@ -982,11 +982,9 @@ namespace Fsp.Interop
internal static Version GetFspVersion() internal static Version GetFspVersion()
{ {
UInt32 Version = 0, VersionMajor, VersionMinor; UInt32 Version = 0;
FspVersion(out Version); FspVersion(out Version);
VersionMajor = Version >> 16; return new System.Version((Int32)Version >> 16, (Int32)Version & 0xFFFF);
VersionMinor = Version & 0xFFFF;
return new System.Version((Int32)VersionMajor, (Int32)VersionMinor);
} }
/* initialization */ /* initialization */

View File

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