Commit f84dbdce authored by Alexandre Julliard's avatar Alexandre Julliard

Added check for duplicate ordinals, and fixed bug it uncovered in

msnet32.spec.
parent f1813032
...@@ -54,8 +54,7 @@ ...@@ -54,8 +54,7 @@
54 stub @ 54 stub @
55 stub @ 55 stub @
56 stub @ 56 stub @
57 stub @ 57 stdcall @(long long ptr long ptr) MSNET32_57
57 stdcall @(long long ptr long ptr) MSNET32_57
58 stub @ 58 stub @
59 stub @ 59 stub @
60 stub @ 60 stub @
......
...@@ -517,6 +517,11 @@ static int ParseOrdinal(int ordinal) ...@@ -517,6 +517,11 @@ static int ParseOrdinal(int ordinal)
if (ordinal > Limit) Limit = ordinal; if (ordinal > Limit) Limit = ordinal;
if (ordinal < Base) Base = ordinal; if (ordinal < Base) Base = ordinal;
odp->ordinal = ordinal; odp->ordinal = ordinal;
if (Ordinals[ordinal])
{
error( "Duplicate ordinal %d\n", ordinal );
goto error;
}
Ordinals[ordinal] = odp; Ordinals[ordinal] = odp;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment