This commit is contained in:
Scott E. Graves 2024-10-28 14:20:02 -05:00
parent 7eb12d09f9
commit ab0b1b645b

View File

@ -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);
}
}