ICU-622 corrected error with instatiating aliased data

X-SVN-Rev: 2549
This commit is contained in:
Vladimir Weinstein 2000-10-02 19:58:36 +00:00
parent 6eede8037e
commit 8ea49555bd

View file

@ -246,7 +246,12 @@ UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCod
if(alias != NULL && aliasLen > 0) { /* if there is actual alias - unload and load new data */
u_UCharsToChars(alias, aliasName, u_strlen(alias)+1);
res_unload(&(r->fData));
res_load(&(r->fData), r->fPath, aliasName, status);
result = res_load(&(r->fData), r->fPath, aliasName, status);
if (result == FALSE || U_FAILURE(*status)) {
/* we couldn't load aliased data - so we have no data */
*status = U_USING_FALLBACK_ERROR;
r->fBogus = U_USING_FALLBACK_ERROR;
}
}
}