Added check for duplicate ordinals, and fixed bug it uncovered in
msnet32.spec.
This commit is contained in:
parent
f181303246
commit
f84dbdce51
|
@ -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)
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue