dll: FspFsctlStop: fix problem in call to DeviceIoControl

- The DeviceIoControl was invoked in an incorrect fashion that nevertheless worked in Win64, but not Win32.
This commit is contained in:
Bill Zissimopoulos 2016-07-28 14:56:06 -07:00
parent 9b4318c655
commit a4e2ad9dd6

View File

@ -132,7 +132,9 @@ exit:
FSP_API NTSTATUS FspFsctlStop(HANDLE VolumeHandle)
{
if (!DeviceIoControl(VolumeHandle, FSP_FSCTL_STOP, 0, 0, 0, 0, 0, 0))
DWORD Bytes;
if (!DeviceIoControl(VolumeHandle, FSP_FSCTL_STOP, 0, 0, 0, 0, &Bytes, 0))
return FspNtStatusFromWin32(GetLastError());
return STATUS_SUCCESS;