From 1fe9f6d4c65eef9db2d8378a58b029c0c27c71ae Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Thu, 24 Aug 2017 12:12:43 +0200 Subject: [PATCH] Fix C# wrapper --- wrappers/csharp/wrapper_impl.mustache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrappers/csharp/wrapper_impl.mustache b/wrappers/csharp/wrapper_impl.mustache index b281a5f80..f66c504fe 100644 --- a/wrappers/csharp/wrapper_impl.mustache +++ b/wrappers/csharp/wrapper_impl.mustache @@ -532,12 +532,12 @@ namespace Linphone return fromNativePtr<{{type}}>(ptr, {{takeRef}}); {{/is_class}} {{#is_enum}} - {{#exception}}int exception_result = {{/exception}}{{return}}{{c_name}}({{nativePtr}}{{c_args}}); + {{#exception}}int exception_result = {{/exception}}{{return}}{{c_name}}({{nativePtr}}{{{c_args}}}); {{#exception}}if (exception_result != 0) throw new LinphoneException("{{name}} returned value " + exception_result);{{/exception}} {{/is_enum}} {{#is_generic}} - {{#exception}}int exception_result = {{/exception}}{{return}}{{c_name}}({{nativePtr}}{{c_args}}); - {{#exception}}if (exception_result != 0) throw new LinphoneException("{{name}} returned value " + exception_result);{{/exception}} + {{#exception}}int exception_result = {{/exception}}{{return}}{{c_name}}({{nativePtr}}{{{c_args}}}); + {{#exception}}if (exception_result != 0) throw new LinphoneException("{{name}} returned value" + exception_result);{{/exception}} {{/is_generic}} {{#is_string_list}} return MarshalStringArray({{c_name}}({{nativePtr}}{{c_args}}));