mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-14 15:52:47 -05:00
rename *Path to *Name in multiple instances
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
|
||||
FSP_API NTSTATUS FspFsctlCreateVolume(PWSTR DevicePath,
|
||||
const FSP_FSCTL_VOLUME_PARAMS *VolumeParams,
|
||||
PWCHAR VolumePathBuf, SIZE_T VolumePathSize,
|
||||
PWCHAR VolumeNameBuf, SIZE_T VolumeNameSize,
|
||||
PHANDLE PVolumeHandle)
|
||||
{
|
||||
NTSTATUS Result;
|
||||
@ -22,8 +22,8 @@ FSP_API NTSTATUS FspFsctlCreateVolume(PWSTR DevicePath,
|
||||
HANDLE VolumeHandle = INVALID_HANDLE_VALUE;
|
||||
DWORD Bytes;
|
||||
|
||||
if (sizeof(WCHAR) <= VolumePathSize)
|
||||
VolumePathBuf[0] = L'\0';
|
||||
if (sizeof(WCHAR) <= VolumeNameSize)
|
||||
VolumeNameBuf[0] = L'\0';
|
||||
*PVolumeHandle = INVALID_HANDLE_VALUE;
|
||||
|
||||
/* check lengths; everything (including encoded volume params) must fit within MAX_PATH */
|
||||
@ -64,7 +64,7 @@ FSP_API NTSTATUS FspFsctlCreateVolume(PWSTR DevicePath,
|
||||
|
||||
if (!DeviceIoControl(VolumeHandle, FSP_FSCTL_VOLUME_NAME,
|
||||
0, 0,
|
||||
VolumePathBuf, (DWORD)VolumePathSize,
|
||||
VolumeNameBuf, (DWORD)VolumeNameSize,
|
||||
&Bytes, 0))
|
||||
{
|
||||
Result = FspNtStatusFromWin32(GetLastError());
|
||||
|
@ -33,7 +33,7 @@ FSP_API NTSTATUS FspFileSystemCreate(PWSTR DevicePath,
|
||||
memset(FileSystem, 0, sizeof *FileSystem);
|
||||
|
||||
Result = FspFsctlCreateVolume(DevicePath, VolumeParams,
|
||||
FileSystem->VolumePath, sizeof FileSystem->VolumePath,
|
||||
FileSystem->VolumeName, sizeof FileSystem->VolumeName,
|
||||
&FileSystem->VolumeHandle);
|
||||
if (!NT_SUCCESS(Result))
|
||||
{
|
||||
|
Reference in New Issue
Block a user