inc: winfsp.hpp: refactor FileSystem class into FileSystemHost and FileSystemBase

This commit is contained in:
Bill Zissimopoulos 2017-04-17 14:30:07 -07:00
parent 4e7f988371
commit 8b71e18972
2 changed files with 5 additions and 5 deletions

View File

@ -475,8 +475,8 @@ class FileSystemHost
{
public:
/* ctor/dtor */
FileSystemHost(FileSystemBase *FileSystem) :
_VolumeParams(), _FileSystemPtr(0), _FileSystem(FileSystem)
FileSystemHost(FileSystemBase &FileSystem) :
_VolumeParams(), _FileSystemPtr(0), _FileSystem(&FileSystem)
{
Initialize();
_VolumeParams.UmFileContextIsFullContext = 1;
@ -721,9 +721,9 @@ public:
{
return _FileSystemPtr;
}
FileSystemBase *FileSystem()
FileSystemBase &FileSystem()
{
return _FileSystem;
return *_FileSystem;
}
static NTSTATUS SetDebugLogFile(PWSTR FileName)
{

View File

@ -874,7 +874,7 @@ static ULONG wcstol_deflt(wchar_t *w, ULONG deflt)
return L'\0' != w[0] && L'\0' == *endp ? ul : deflt;
}
PtfsService::PtfsService() : Service(L"" PROGNAME), _Ptfs(), _Host(&_Ptfs)
PtfsService::PtfsService() : Service(L"" PROGNAME), _Ptfs(), _Host(_Ptfs)
{
}