mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[SPEC2DEF]
- Do not include an export's ordinal in the .def file for the import lib unless import by ordinal is intended (via -noname or -ordinal). MSVC will always import by ordinal if it finds one in the def file, which would break apps on different versions of Windows if applied to the wrong functions. svn path=/trunk/; revision=63664
This commit is contained in:
parent
aa3b023aa4
commit
420285a3c0
1 changed files with 3 additions and 1 deletions
|
@ -569,7 +569,9 @@ ParseFile(char* pcStart, FILE *fileDest, PFNOUTLINE OutputLine)
|
|||
else
|
||||
{
|
||||
exp.nOrdinal = atol(pc);
|
||||
exp.uFlags |= FL_ORDINAL;
|
||||
/* The import lib should contain the ordinal only if -ordinal was specified */
|
||||
if (!gbImportLib)
|
||||
exp.uFlags |= FL_ORDINAL;
|
||||
}
|
||||
|
||||
/* Go to next token (type) */
|
||||
|
|
Loading…
Reference in a new issue