From 20c152a8a2d8943c38db66eea5e23b4d39882b01 Mon Sep 17 00:00:00 2001 From: Vladimir Weinstein Date: Tue, 30 May 2000 17:02:26 +0000 Subject: [PATCH] ICU-184 uresbund data handling fix (should have pointers to shared memory, but it didn't) X-SVN-Rev: 1511 --- icu4c/source/common/uresbund.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/uresbund.c b/icu4c/source/common/uresbund.c index a6a96f49d6..bc255ea3f7 100644 --- a/icu4c/source/common/uresbund.c +++ b/icu4c/source/common/uresbund.c @@ -88,11 +88,12 @@ void entryDecrease(UResourceDataEntry *entry) { const ResourceData *getFallbackData(const UResourceBundle* resBundle, const char* * resTag, UResourceDataEntry* *realData, Resource *res, UErrorCode *status) { const ResourceData *result = NULL; UResourceDataEntry *resB = resBundle->fData; + int32_t indexR = -1; int32_t i = 0; *res = RES_BOGUS; if(resB != NULL) { if(resB->fBogus == U_ZERO_ERROR) { /* if this resource is real, */ - *res = res_getResource(&(resB->fData), *resTag); /* try to get data from there */ + *res = res_getTableItemByKey(&(resB->fData), resB->fData.rootRes, &indexR, resTag); /* try to get data from there */ i++; } if(resBundle->fHasFallback == TRUE) { @@ -100,7 +101,7 @@ const ResourceData *getFallbackData(const UResourceBundle* resBundle, const char resB = resB->fParent; if(resB->fBogus == U_ZERO_ERROR) { i++; - *res = res_getResource(&(resB->fData), *resTag); + *res = res_getTableItemByKey(&(resB->fData), resB->fData.rootRes, &indexR, resTag); } } }