[SPEC2DEF] Omit skipped exports from ordinal numbering.

CORE-16769
This commit is contained in:
Mark Jansen
2020-03-30 19:41:14 +02:00
parent 45e79efd06
commit c1464a4030

View File

@@ -1332,7 +1332,7 @@ ApplyOrdinals(EXPORT* pexports, unsigned cExports)
/* Pass 2: apply available ordinals */
for (i = 0, j = 1; i < cExports; i++)
{
if ((pexports[i].uFlags & FL_ORDINAL) == 0)
if ((pexports[i].uFlags & FL_ORDINAL) == 0 && pexports[i].bVersionIncluded)
{
while (used[j] != 0)
j++;