Skip to content

Commit

Permalink
Wideoffset should be divided by wchar
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Mar 11, 2024
1 parent f9fd639 commit 18f0ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/windows/zfs/zfs_vnops_windows_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ zfs_send_notify_stream(zfsvfs_t *zfsvfs, char *name, int nameoffset,
zmo = zfsvfs->z_vfs;
UNICODE_STRING ustr;
UNICODE_STRING ustream;
int wideoffset = nameoffset * sizeof (WCHAR);
int wideoffset = nameoffset / sizeof (WCHAR);

if (name == NULL)
return;
Expand Down

0 comments on commit 18f0ddf

Please sign in to comment.