VirtualBox

Changeset 29978 in vbox


Ignore:
Timestamp:
Jun 2, 2010 11:38:31 AM (15 years ago)
Author:
vboxsync
Message:

SUPDrv.c: Temporarily changed VERR_NO_MEMORY in the LDR code with different VERR_INTERNAL_ERROR_X returns to try figure out where the VERR_NO_MEMORY when loading VMMR0.r0 origins. (ticket 6813)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r29250 r29978  
    36453645        supdrvLdrUnlock(pDevExt);
    36463646        Log(("supdrvIOCtl_LdrOpen: RTMemAlloc() failed\n"));
    3647         return VERR_NO_MEMORY;
     3647        return /*VERR_NO_MEMORY*/ VERR_INTERNAL_ERROR_2;
    36483648    }
    36493649
     
    36783678        pImage->pvImage     = RT_ALIGN_P(pImage->pvImageAlloc, 32);
    36793679        pImage->fNative     = false;
    3680         rc = pImage->pvImageAlloc ? VINF_SUCCESS : VERR_NO_MEMORY;
     3680        rc = pImage->pvImageAlloc ? VINF_SUCCESS : VERR_NO_EXEC_MEMORY;
    36813681    }
    36823682    if (RT_FAILURE(rc))
     
    38613861            memcpy(pImage->pachStrTab, &pReq->u.In.abImage[pReq->u.In.offStrTab], pImage->cbStrTab);
    38623862        else
    3863             rc = VERR_NO_MEMORY;
     3863            rc = /*VERR_NO_MEMORY*/ VERR_INTERNAL_ERROR_3;
    38643864    }
    38653865
     
    38723872            memcpy(pImage->paSymbols, &pReq->u.In.abImage[pReq->u.In.offSymbols], cbSymbols);
    38733873        else
    3874             rc = VERR_NO_MEMORY;
     3874            rc = /*VERR_NO_MEMORY*/ VERR_INTERNAL_ERROR_4;
    38753875    }
    38763876
     
    43004300     */
    43014301    pUsage = (PSUPDRVLDRUSAGE)RTMemAlloc(sizeof(*pUsage));
    4302     AssertReturn(pUsage, VERR_NO_MEMORY);
     4302    AssertReturn(pUsage, /*VERR_NO_MEMORY*/ VERR_INTERNAL_ERROR_5);
    43034303    pUsage->cUsage = 1;
    43044304    pUsage->pImage = pImage;
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