[fix] 修复 ReversePInvokeWrap生成代码的bug

main
walon 2022-12-12 21:36:41 +08:00
parent a107f43173
commit 8afdcb985d
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ namespace HybridCLR.Editor.ReversePInvokeWrap
codes.Add($@"
{method.ReturnInfo.Type.GetTypeName()} __ReversePInvokeMethod_{methodIndex}({paramDeclaringListWithoutMethodInfoStr})
{{
const MethodInfo* method = MetadataModule::GetMethodInfoByReversePInvokeWrapperIndex({i});
const MethodInfo* method = MetadataModule::GetMethodInfoByReversePInvokeWrapperIndex({methodIndex});
{methodTypeDef};
{(method.ReturnInfo.IsVoid ? "" : "return ")}((Callback)(method->methodPointerCallByInterp))({paramNameListWithoutMethodInfoStr});
}}