Changeset 17492


Ignore:
Timestamp:
Oct 3, 2001, 3:44:49 AM (24 years ago)
Author:
bird
Message:

Corrected bug in export enumeration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/tools/common/kFileLX.cpp

    r16092 r17492  
    1 /* $Id: kFileLX.cpp,v 1.5 2001-04-17 00:26:11 bird Exp $
     1/* $Id: kFileLX.cpp,v 1.6 2001-10-03 01:44:49 bird Exp $
    22 *
    33 *
     
    357357    pExpState->pb32 = (struct b32_bundle*)((char*)(pExpState->pb32 + 1) +
    358358                        pExpState->pb32->b32_cnt * acbEntry[pExpState->pb32->b32_type & ~TYPEINFO]);
     359    pExpState->iOrdinal++;
    359360    while (pExpState->pb32->b32_cnt != 0)
    360361    {
    361362        /* skip empty bundles */
    362         while (pExpState->pb32->b32_cnt != 0 && pExpState->pb32->b32_type == EMPTY)
     363        if (pExpState->pb32->b32_cnt != 0 && pExpState->pb32->b32_type == EMPTY)
    363364        {
    364365            pExpState->iOrdinal += pExpState->pb32->b32_cnt;
    365366            pExpState->pb32 = (struct b32_bundle*)((char*)pExpState->pb32 + 2);
     367            continue;
    366368        }
    367369
    368370        /* FIXME forwarders are not implemented so we'll skip them too. */
    369         while (pExpState->pb32->b32_cnt != 0 && (pExpState->pb32->b32_type & ~TYPEINFO) == ENTRYFWD)
     371        if (pExpState->pb32->b32_cnt != 0 && (pExpState->pb32->b32_type & ~TYPEINFO) == ENTRYFWD)
    370372        {
    371373            pExpState->iOrdinal += pExpState->pb32->b32_cnt;
    372374            pExpState->pb32 = (struct b32_bundle*)((char*)(pExpState->pb32 + 1) + pExpState->pb32->b32_cnt * 7);
     375            continue;
    373376        }
    374377
     
    400403                    pExport->ulOffset = pExpState->pe32->e32_variant.e32_callgate.offset;
    401404                    break;
     405
    402406                default:
    403407                    assert(!"ARG!!!! invalid bundle type!");
Note: See TracChangeset for help on using the changeset viewer.