From f84557d0d0792878ed01ed2e85ee6ea221b2a343 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 5 Mar 2020 17:20:27 +0100 Subject: [PATCH] Fix arguments for dispatch callback passthrough --- src/common/communication.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/communication.h b/src/common/communication.h index b268b47a..4b085d1d 100644 --- a/src/common/communication.h +++ b/src/common/communication.h @@ -285,8 +285,8 @@ void passthrough_event(boost::asio::local::stream_protocol::socket& socket, } } - const intptr_t return_value = callback(plugin, event.opcode, event.option, - event.index, payload, event.option); + const intptr_t return_value = callback(plugin, event.opcode, event.index, + event.value, payload, event.option); // Only write back the value from `payload` if we were passed an empty // buffer to write into