NS_IMETHODIMP nsRegistry::GetValueLength( nsRegistryKey baseKey, const char *path, uint32 *result ) {
NS_IMETHODIMP nsRegistry::GetValueLength( nsRegistryKey baseKey, const char *path, PRUint32 *result ) {
NS_IMETHODIMP nsRegistry::GetValueLength( nsRegistryKey baseKey, const char *path, uint32 *result ) {    nsresult rv = NS_OK;    REGERR err = REGERR_OK;    // Make sure we have a place to put the result.    if( result ) {        // Get registry info into local structure.        REGINFO info = { sizeof info, 0, 0 };        PR_Lock(mregLock);        err = NR_RegGetEntryInfo( mReg,(RKEY)baseKey,(char*)path, &info );        PR_Unlock(mregLock);        if( err == REGERR_OK ) {            // Copy info to user's result value.            reginfo2Length( info, *result );        } else {            rv = regerr2nsresult( err );        }    } else {        rv = NS_ERROR_NULL_POINTER;    }    return rv;}