From a4e2ad9dd6cf9f36889f7e65cd2c4db6078834b4 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Thu, 28 Jul 2016 14:56:06 -0700 Subject: [PATCH] dll: FspFsctlStop: fix problem in call to DeviceIoControl - The DeviceIoControl was invoked in an incorrect fashion that nevertheless worked in Win64, but not Win32. --- src/dll/fsctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dll/fsctl.c b/src/dll/fsctl.c index 490122c2..2fa10c17 100644 --- a/src/dll/fsctl.c +++ b/src/dll/fsctl.c @@ -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;