mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Bugfix: BUILTIN_GetEntryPoint16 didn't work correctly with the new
entry table layout.
This commit is contained in:
parent
a7f2140ae9
commit
a7e6e81d07
1 changed files with 9 additions and 8 deletions
|
@ -280,19 +280,20 @@ LPCSTR BUILTIN_GetEntryPoint16( WORD cs, WORD ip, WORD *pOrd )
|
|||
max_offset = 0;
|
||||
*pOrd = 0;
|
||||
bundle = (ET_BUNDLE *)((BYTE *)pModule + pModule->entry_table);
|
||||
entry = (ET_ENTRY *)((BYTE *)bundle+6);
|
||||
do {
|
||||
for (i = bundle->first + 1; i < bundle->last; i++)
|
||||
{
|
||||
do
|
||||
{
|
||||
entry = (ET_ENTRY *)((BYTE *)bundle+6);
|
||||
for (i = bundle->first + 1; i <= bundle->last; i++)
|
||||
{
|
||||
if ((entry->offs <= ip)
|
||||
&& (entry->type == 1) /* code segment ? */
|
||||
&& (entry->segnum == 1) /* code segment ? */
|
||||
&& (entry->offs >= max_offset))
|
||||
{
|
||||
{
|
||||
max_offset = entry->offs;
|
||||
*pOrd = i;
|
||||
}
|
||||
}
|
||||
entry++;
|
||||
}
|
||||
}
|
||||
} while ( (bundle->next)
|
||||
&& (bundle = (ET_BUNDLE *)((BYTE *)pModule+bundle->next)));
|
||||
|
||||
|
|
Loading…
Reference in a new issue