From 4bdaeaa30d9f3315b53e8942cc7863b5b607581b Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 2 Aug 2024 14:09:20 -0500 Subject: [PATCH] refactor --- .../src/drives/winfsp/remotewinfsp/remote_client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_client.cpp b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_client.cpp index 2093b61a..4cf11984 100644 --- a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_client.cpp +++ b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_client.cpp @@ -177,7 +177,8 @@ auto remote_client::winfsp_close(PVOID file_desc) -> packet::error_type { std::uint32_t service_flags{}; const auto ret = packet_client_.send(function_name, request, service_flags); - if ((ret == STATUS_SUCCESS) || (ret == STATUS_INVALID_HANDLE)) { + if ((ret == STATUS_SUCCESS) || + (ret == static_cast(STATUS_INVALID_HANDLE))) { remove_open_info(handle); RAISE_REMOTE_WINFSP_CLIENT_EVENT(function_name, file_path, ret); }