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