From c1464a4030c6f9438becbbeffb83e1d5de100454 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Mon, 30 Mar 2020 19:41:14 +0200 Subject: [PATCH] [SPEC2DEF] Omit skipped exports from ordinal numbering. CORE-16769 --- sdk/tools/spec2def/spec2def.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/tools/spec2def/spec2def.c b/sdk/tools/spec2def/spec2def.c index b929487069d..c1ac211ccc0 100644 --- a/sdk/tools/spec2def/spec2def.c +++ b/sdk/tools/spec2def/spec2def.c @@ -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++;