Skip to content

Commit

Permalink
Fix #213 and a typo in macro FSP_FUSE_CTLCODE_FROM_IOCTL
Browse files Browse the repository at this point in the history
  • Loading branch information
felfert authored and billziss-gh committed Feb 18, 2019
1 parent f214561 commit b69ed7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/fuse/winfsp_fuse.h
Expand Up @@ -59,7 +59,7 @@ extern "C" {

#define FSP_FUSE_DEVICE_TYPE (0x8000 | 'W' | 'F' * 0x100) /* DeviceIoControl -> ioctl */
#define FSP_FUSE_CTLCODE_FROM_IOCTL(cmd)\
(FSP_FUSE_DEVICE_TYPE << 16) | (((c) & 0x0fff) << 2)
(FSP_FUSE_DEVICE_TYPE << 16) | (((cmd) & 0x0fff) << 2)
#define FSP_FUSE_IOCTL(cmd, isiz, osiz) \
( \
(((osiz) != 0) << 31) | \
Expand Down
1 change: 1 addition & 0 deletions src/dll/fuse/fuse_intf.c
Expand Up @@ -2168,6 +2168,7 @@ static NTSTATUS fsp_fuse_intf_Control(FSP_FILE_SYSTEM *FileSystem,
memcpy(OutputBuffer, InputBuffer, InputBufferLength);
err = f->ops.ioctl(filedesc->PosixPath, cmd, 0, &fi, 0, OutputBuffer);
}
*PBytesTransferred = OutputBufferLength;

return fsp_fuse_ntstatus_from_errno(f->env, err);
}
Expand Down

0 comments on commit b69ed7e

Please sign in to comment.