bugfix export by ordinal

This commit is contained in:
Nikita Smith
2026-01-27 11:25:54 -08:00
parent 3113db2d08
commit cc43d17496
+1 -1
View File
@@ -1342,7 +1342,7 @@ pe_exports_from_data(Arena *arena, U64 section_count, COFF_SectionHeader *sectio
if (is_voff_taken && is_ordinal_free) { if (is_voff_taken && is_ordinal_free) {
curr_exp->name = str8_zero(); curr_exp->name = str8_zero();
curr_exp->voff = voff; curr_exp->voff = voff;
curr_exp->ordinal = header->ordinal_base; curr_exp->ordinal = header->ordinal_base + ordinal_nb;
++curr_exp; ++curr_exp;
} }
} }