Ignore:
Timestamp:
Nov 16, 1999, 7:27:01 PM (26 years ago)
Author:
bird
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winimagepe2lx.cpp

    r1325 r1758  
    1 /* $Id: winimagepe2lx.cpp,v 1.3 1999-10-17 01:49:09 bird Exp $ */
     1/* $Id: winimagepe2lx.cpp,v 1.4 1999-11-16 18:27:01 bird Exp $ */
    22
    33/*
     
    251251            PVOID pv;
    252252            pv = getPointerFromRVA(pTLSDir->StartAddressOfRawData);
    253             if (pv == NULL)
     253            if (pv == NULL || pTLSDir->StartAddressOfRawData == 0UL)
    254254            {
    255255                eprintf(("Win32Pe2LxImage::init: invalid RVA to TLS StartAddressOfRawData - %#8x.\n",
     
    489489 * @returns   Pointer matching the given RVA, NULL on error.
    490490 * @param     ulRVA  An address relative to the imagebase of the original PE image.
     491 *                   If this is 0UL NULL is returned.
    491492 * @sketch    DEBUG: validate state, paSections != NULL
     493 *            IF ulRVA is 0 THEN return NULL
    492494 *            LOOP while more section left and ulRVA is not within section
    493495 *                next section
     
    497499 * @author    knut st. osmundsen
    498500 * @remark    Should not be called until getSections has returned successfully.
     501 *            RVA == 0 is ignored.
    499502 */
    500503PVOID  Win32Pe2LxImage::getPointerFromRVA(ULONG ulRVA)
     
    506509    #endif
    507510
     511    if (ulRVA == 0UL)
     512        return NULL;
     513
    508514    i = 0;
    509515    while (i < cSections &&
Note: See TracChangeset for help on using the changeset viewer.