mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 21:13:38 +00:00
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 @
|
||||
55 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 @
|
||||
59 stub @
|
||||
60 stub @
|
||||
|
|
|
@ -517,6 +517,11 @@ static int ParseOrdinal(int ordinal)
|
|||
if (ordinal > Limit) Limit = ordinal;
|
||||
if (ordinal < Base) Base = ordinal;
|
||||
odp->ordinal = ordinal;
|
||||
if (Ordinals[ordinal])
|
||||
{
|
||||
error( "Duplicate ordinal %d\n", ordinal );
|
||||
goto error;
|
||||
}
|
||||
Ordinals[ordinal] = odp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue