Tracker: Tiny style fix to Bitmaps.cpp
This commit is contained in:
@@ -210,7 +210,7 @@ BImageResources::find_image(void* memAddr) const
|
|||||||
{
|
{
|
||||||
image_info info;
|
image_info info;
|
||||||
int32 cookie = 0;
|
int32 cookie = 0;
|
||||||
while (get_next_image_info(0, &cookie, &info) == B_OK)
|
while (get_next_image_info(0, &cookie, &info) == B_OK) {
|
||||||
if ((info.text <= memAddr
|
if ((info.text <= memAddr
|
||||||
&& (((uint8*)info.text)+info.text_size) > memAddr)
|
&& (((uint8*)info.text)+info.text_size) > memAddr)
|
||||||
|| (info.data <= memAddr
|
|| (info.data <= memAddr
|
||||||
@@ -218,6 +218,7 @@ BImageResources::find_image(void* memAddr) const
|
|||||||
// Found the image.
|
// Found the image.
|
||||||
return info.id;
|
return info.id;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user