size is actually icon_size, not data size, thanks Axel for pointing out!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27053 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d6b39cd1a2
commit
1dfa5a7d2a
@ -202,9 +202,6 @@ get_device_icon(const char *device, void *icon, int32 size)
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
|
||||
if (size < icon8->BitsLength())
|
||||
return B_BAD_VALUE;
|
||||
|
||||
status = BIconUtils::GetVectorIcon(data, dataSize, icon32);
|
||||
if (status == B_OK)
|
||||
status = BIconUtils::ConvertToCMAP8(icon32, icon8);
|
||||
|
Loading…
Reference in New Issue
Block a user