From ab0b1b645bcf9e4ee59bcee1be503a288ae15c6b Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Mon, 28 Oct 2024 14:20:02 -0500 Subject: [PATCH] fix --- repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp index 7dd563f1..c8feb6d6 100644 --- a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp +++ b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp @@ -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(file_size - offset); } }