From: Jose Bollo Date: Mon, 2 Mar 2020 15:59:32 +0000 (+0100) Subject: Fix bug in C++ wrapper X-Git-Tag: 9.0.1~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=591f9d339d6467e4b53be561aedda90630a9ddbf Fix bug in C++ wrapper Address of the function is much better than adress of the pointer in the stack. BUG-AGL: SPEC-3220 Change-Id: I860b66ac7b8581af5229201556333edcde1f089f Signed-off-by: Jose Bollo --- diff --git a/include/afb/c++/binding-wrap.hpp b/include/afb/c++/binding-wrap.hpp index a9984690..9844a070 100644 --- a/include/afb/c++/binding-wrap.hpp +++ b/include/afb/c++/binding-wrap.hpp @@ -782,7 +782,7 @@ constexpr afb_verb_t verb( session, auth, glob, - (void*)(&callback) + *(void**)(&callback) ); }