diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-10-18 08:07:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 08:07:24 +0300 |
commit | 92ff02435693486da161626246f016b4f1e7b8e8 (patch) | |
tree | 26897fd9a95ed6a8829d467a9355d69f100d8f58 /src/tasks | |
parent | a1c550c1228af5b381dc517483ae89ed161df153 (diff) |
[wasm] Fix typedef for non-void interp entry callbacks (#59990)
For UnmanagedCallersOnly methods that return non-void, pass the address of the
return variable to the interp entry method.
Co-authored-by: Aleksey Kliger <alklig@microsoft.com>
Diffstat (limited to 'src/tasks')
-rw-r--r-- | src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs b/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs index feb2dda21d8..2a682947351 100644 --- a/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs +++ b/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs @@ -326,7 +326,7 @@ public class PInvokeTableGenerator : Task sb.Append($" (*WasmInterpEntrySig_{cb_index}) ("); int pindex = 0; if (method.ReturnType.Name != "Void") { - sb.Append("int"); + sb.Append("int*"); pindex++; } foreach (var p in method.GetParameters()) { |