Ignore:
Timestamp:
Sep 2, 2007, 11:40:41 PM (18 years ago)
Author:
bird
Message:

error code cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kStuff/kLdr/kLdrDyldMod.c

    r3578 r3579  
    182182    {
    183183        kLdrModClose(pRawMod);
    184         rc = KLDR_ERR_NO_MEMORY;
     184        rc = KERR_NO_MEMORY;
    185185    }
    186186    return rc;
     
    762762        pMod->papPrereqs = (PPKLDRDYLDMOD)kHlpAllocZ(sizeof(pMod->papPrereqs[0]) * cPrereqs);
    763763        if (!pMod->papPrereqs)
    764             return KLDR_ERR_NO_MEMORY;
     764            return KERR_NO_MEMORY;
    765765        pMod->cPrereqs = cPrereqs;
    766766    }
     
    12241224 * Gets the module name.
    12251225 *
    1226  * @returns 0 on success, KLDR_ERR_BUFFER_OVERFLOW on failure.
     1226 * @returns 0 on success, KERR_BUFFER_OVERFLOW on failure.
    12271227 * @param   pMod            The module.
    12281228 * @param   pszName         Where to store the name.
     
    12371237        pszName[cch - 1] = '\0';
    12381238    }
    1239     return cchName <= pMod->pMod->cchName ? KLDR_ERR_BUFFER_OVERFLOW : 0;
     1239    return cchName <= pMod->pMod->cchName ? KERR_BUFFER_OVERFLOW : 0;
    12401240}
    12411241
     
    12441244 * Gets the module filename.
    12451245 *
    1246  * @returns 0 on success, KLDR_ERR_BUFFER_OVERFLOW on failure.
     1246 * @returns 0 on success, KERR_BUFFER_OVERFLOW on failure.
    12471247 * @param   pMod            The module.
    12481248 * @param   pszFilename     Where to store the filename.
     
    12571257        pszFilename[cch - 1] = '\0';
    12581258    }
    1259     return cchFilename <= pMod->pMod->cchFilename ? KLDR_ERR_BUFFER_OVERFLOW : 0;
     1259    return cchFilename <= pMod->pMod->cchFilename ? KERR_BUFFER_OVERFLOW : 0;
    12601260}
    12611261
Note: See TracChangeset for help on using the changeset viewer.