Due to the changes in r40529, the resource data pointer was no longer pointing to static data.
Consequently the locale kit would fail to load resources since the pointer was no longer an address within the liblocale.so image, with the result that things like flag bitmaps would no longer be accessible. Fixes #7246. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40580 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -249,7 +249,7 @@ BLocaleRoster::GetFlagIconForCountry(BBitmap* flagIcon, const char* countryCode)
|
||||
return B_ERROR;
|
||||
|
||||
if (!rosterData->fAreResourcesLoaded) {
|
||||
status_t result = rosterData->fResources.SetToImage(rosterData);
|
||||
status_t result = rosterData->fResources.SetToImage((const void *)&BLocaleRoster::Default);
|
||||
if (result != B_OK)
|
||||
return result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user