mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
tst: passthrough: testing
This commit is contained in:
parent
5475c414b3
commit
ebad86387c
@ -91,6 +91,9 @@ static NTSTATUS WinFspLoad(VOID)
|
|||||||
LONG Result;
|
LONG Result;
|
||||||
HMODULE Module;
|
HMODULE Module;
|
||||||
|
|
||||||
|
Module = LoadLibraryW(L"" FSP_DLLNAME);
|
||||||
|
if (0 == Module)
|
||||||
|
{
|
||||||
Size = sizeof PathBuf;
|
Size = sizeof PathBuf;
|
||||||
Result = RegGetValueW(
|
Result = RegGetValueW(
|
||||||
HKEY_LOCAL_MACHINE, L"Software\\WinFsp", L"InstallDir",
|
HKEY_LOCAL_MACHINE, L"Software\\WinFsp", L"InstallDir",
|
||||||
@ -107,6 +110,7 @@ static NTSTATUS WinFspLoad(VOID)
|
|||||||
Result = __HrLoadAllImportsForDll(FSP_DLLNAME);
|
Result = __HrLoadAllImportsForDll(FSP_DLLNAME);
|
||||||
if (0 > Result)
|
if (0 > Result)
|
||||||
return STATUS_DELAY_LOAD_FAILED;
|
return STATUS_DELAY_LOAD_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|
||||||
@ -1102,7 +1106,7 @@ static NTSTATUS Overwrite(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
if (ReplaceFileAttributes)
|
if (ReplaceFileAttributes)
|
||||||
{
|
{
|
||||||
if (0 == FileAttributes)
|
if (0 == FileAttributes)
|
||||||
FileAttributes = FILE_ATTRIBUTES_NORMAL;
|
FileAttributes = FILE_ATTRIBUTE_NORMAL;
|
||||||
|
|
||||||
BasicInfo.FileAttributes = FileAttributes; // <1>
|
BasicInfo.FileAttributes = FileAttributes; // <1>
|
||||||
if (!SetFileInformationByHandle(Handle,
|
if (!SetFileInformationByHandle(Handle,
|
||||||
|
@ -255,7 +255,7 @@ static NTSTATUS Overwrite(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
if (ReplaceFileAttributes)
|
if (ReplaceFileAttributes)
|
||||||
{
|
{
|
||||||
if (0 == FileAttributes)
|
if (0 == FileAttributes)
|
||||||
FileAttributes = FILE_ATTRIBUTES_NORMAL;
|
FileAttributes = FILE_ATTRIBUTE_NORMAL;
|
||||||
|
|
||||||
BasicInfo.FileAttributes = FileAttributes;
|
BasicInfo.FileAttributes = FileAttributes;
|
||||||
if (!SetFileInformationByHandle(Handle,
|
if (!SetFileInformationByHandle(Handle,
|
||||||
@ -907,6 +907,9 @@ static NTSTATUS WinFspLoad(VOID)
|
|||||||
LONG Result;
|
LONG Result;
|
||||||
HMODULE Module;
|
HMODULE Module;
|
||||||
|
|
||||||
|
Module = LoadLibraryW(L"" FSP_DLLNAME);
|
||||||
|
if (0 == Module)
|
||||||
|
{
|
||||||
Size = sizeof PathBuf;
|
Size = sizeof PathBuf;
|
||||||
Result = RegGetValueW(
|
Result = RegGetValueW(
|
||||||
HKEY_LOCAL_MACHINE, L"Software\\WinFsp", L"InstallDir",
|
HKEY_LOCAL_MACHINE, L"Software\\WinFsp", L"InstallDir",
|
||||||
@ -923,6 +926,7 @@ static NTSTATUS WinFspLoad(VOID)
|
|||||||
Result = __HrLoadAllImportsForDll(FSP_DLLNAME);
|
Result = __HrLoadAllImportsForDll(FSP_DLLNAME);
|
||||||
if (0 > Result)
|
if (0 > Result)
|
||||||
return STATUS_DELAY_LOAD_FAILED;
|
return STATUS_DELAY_LOAD_FAILED;
|
||||||
|
}
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user