Skip to content

Commit

Permalink
Fix heap corruption. (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
manodasanW authored Jul 24, 2021
1 parent 8e15ac2 commit 4560924
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cswinrt/code_writers.h
Original file line number Diff line number Diff line change
Expand Up @@ -6536,7 +6536,8 @@ bind<write_event_invoke_args>(invokeMethodSig));
{
auto&& eventTypeSemantics = get_type_semantics(eventObj.EventType());
auto&& eventTypeCode = w.write_temp("%", bind<write_type_name>(eventTypeSemantics, typedef_name_type::Projected, false));
typeNameToDefinitionMap[eventTypeCode] = w.write_temp("%", bind<write_event_source_subclass>(eventTypeSemantics));
auto&& eventClass = w.write_temp("%", bind<write_event_source_subclass>(eventTypeSemantics));
typeNameToDefinitionMap[eventTypeCode] = eventClass;
}
});
}
Expand All @@ -6548,7 +6549,8 @@ bind<write_event_invoke_args>(invokeMethodSig));
{
auto&& eventTypeSemantics = get_type_semantics(eventObj.EventType());
auto&& eventTypeCode = w.write_temp("%", bind<write_type_name>(eventTypeSemantics, typedef_name_type::Projected, false));
typeNameToDefinitionMap[eventTypeCode] = w.write_temp("%", bind<write_event_source_subclass>(eventTypeSemantics));
auto&& eventClass = w.write_temp("%", bind<write_event_source_subclass>(eventTypeSemantics));
typeNameToDefinitionMap[eventTypeCode] = eventClass;
}
}
}

0 comments on commit 4560924

Please sign in to comment.