It's allowed to write attributes with type 0 - for some reason, our Backgrounds
preferences app writes its info with this type (instead of B_MESSAGE_TYPE as Be's does). It's now possible to set the background image for Tracker under Haiku. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15742 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7b73023562
commit
6e5e7fa996
@ -499,7 +499,7 @@ Inode::AddSmallData(Transaction &transaction, NodeGetter &nodeGetter, const char
|
||||
{
|
||||
bfs_inode *node = nodeGetter.WritableNode();
|
||||
|
||||
if (node == NULL || name == NULL || data == NULL || type == 0)
|
||||
if (node == NULL || name == NULL || data == NULL)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
// reject any requests that can't fit into the small_data section
|
||||
|
Loading…
Reference in New Issue
Block a user