From 0f5e27f939cdc77e461d613a2d5a5ceba8e596a2 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Fri, 30 Aug 2013 23:26:56 +0300 Subject: [PATCH] Fixed a bug that caused the generation of the uncompilable expression "&*IntPtr". Signed-off-by: Dimitar Dobrev --- src/Generator/Generators/CSharp/CSharpMarshal.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Generator/Generators/CSharp/CSharpMarshal.cs b/src/Generator/Generators/CSharp/CSharpMarshal.cs index 6f1bb060..fd976038 100644 --- a/src/Generator/Generators/CSharp/CSharpMarshal.cs +++ b/src/Generator/Generators/CSharp/CSharpMarshal.cs @@ -243,6 +243,7 @@ namespace CppSharp.Generators.CSharp } else { + instance = instance.Trim('*'); Context.SupportBefore.WriteLine( "CppSharp.Runtime.Helpers.memcpy({0}, new IntPtr(&{1}), new UIntPtr({2}));", instanceName, instance, @class.Layout.Size);