fix
This commit is contained in:
parent
7eb12d09f9
commit
ab0b1b645b
@ -1216,7 +1216,7 @@ auto winfsp_drive::Write(PVOID /*file_node*/, PVOID file_desc, PVOID buffer,
|
||||
return handle_error(api_error::success);
|
||||
}
|
||||
|
||||
if (offset + length >) {
|
||||
if (offset + length > file_size) {
|
||||
length = static_cast<ULONG>(file_size - offset);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user