VirtualBox

Changeset 46087 in vbox


Ignore:
Timestamp:
May 15, 2013 9:30:56 AM (12 years ago)
Author:
vboxsync
Message:

warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrMemory.cpp

    r46084 r46087  
    225225                              PFNRTLDRRDRMEMREAD pfnRead, PFNRTLDRRDRMEMDTOR pfnDtor, void *pvUser)
    226226{
    227     AssertReturn(sizeof(cbImage) < sizeof(RTFOFF) || cbImage < RTFOFF_MAX, VERR_INVALID_PARAMETER);
     227#if ARCH_BITS > 32 /* 'ing gcc. */
     228    AssertReturn(cbImage < RTFOFF_MAX, VERR_INVALID_PARAMETER);
     229#endif
    228230    AssertReturn((RTFOFF)cbImage > 0, VERR_INVALID_PARAMETER);
    229231
     
    299301     * Create file reader & invoke worker which identifies and calls the image interpreter.
    300302     */
    301     PRTLDRREADER pReader;
     303    PRTLDRREADER pReader = NULL; /* gcc may be wrong */
    302304    int rc = rtldrRdrMem_Create(&pReader, pszName, cbImage, pfnRead, pfnDtor, pvUser);
    303305    if (RT_SUCCESS(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette