https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c1464a4030c6f9438becb…
commit c1464a4030c6f9438becbbeffb83e1d5de100454
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Mon Mar 30 19:41:14 2020 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Tue Mar 31 22:49:44 2020 +0200
[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++;