NS_IMETHODIMP nsRegistry::GetInt( nsRegistryKey baseKey, const char *path, int32 *result ) {
NS_IMETHODIMP nsRegistry::GetInt( nsRegistryKey baseKey, const char *path, PRInt32 *result ) {
NS_IMETHODIMP nsRegistry::GetInt( nsRegistryKey baseKey, const char *path, int32 *result ) {    nsresult rv = NS_OK;    REGERR err = REGERR_OK;    // Make sure caller gave us place for result.    if( result ) {        // Get info about the requested entry.        uint32 type;        rv = GetValueType( baseKey, path, &type );        // See if that worked.        if( rv == NS_OK ) {            // Make sure the entry is an int32 array.            if( type == Int32 ) {                uint32 len = sizeof *result;                // Get int from registry into result field.                PR_Lock(mregLock);                err = NR_RegGetEntry( mReg,(RKEY)baseKey,(char*)path, result, &len );                PR_Unlock(mregLock);                // Convert status.                rv = regerr2nsresult( err );            } else {                // They asked for the wrong type of value.                rv = NS_ERROR_REG_BADTYPE;            }        }    } else {        rv = NS_ERROR_NULL_POINTER;    }    return rv;}