PrefResult result = PREF_ERROR; PrefHashEntry* pref;
if (!gHashTable.ops) return NS_ERROR_NOT_INITIALIZED;
PrefResult PREF_GetBoolPref(const char *pref_name, PRBool * return_value, PRBool get_default){    PrefResult result = PREF_ERROR;    PrefHashEntry* pref;    if (!gHashTable.ops)        return PREF_NOT_INITIALIZED;    pref = pref_HashTableLookup(pref_name);    //NS_ASSERTION(pref, pref_name);    if (pref && (pref->flags & PREF_BOOL))    {        if (get_default || PREF_IS_LOCKED(pref) || !PREF_HAS_USER_VALUE(pref))        {            PRBool tempBool = pref->defaultPref.boolVal;            /* check to see if we even had a default */            if (tempBool == ((PRBool) BOGUS_DEFAULT_BOOL_PREF_VALUE))                return PREF_DEFAULT_VALUE_NOT_INITIALIZED;            *return_value = tempBool;        }        else            *return_value = pref->userPref.boolVal;        result = PREF_OK;    }    return result;}