From 6e5e7fa996aebd72a1bfabf25e3f867842f52212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 30 Dec 2005 15:24:33 +0000 Subject: [PATCH] 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 --- src/add-ons/kernel/file_systems/bfs/Inode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Inode.cpp b/src/add-ons/kernel/file_systems/bfs/Inode.cpp index d9232d394b..8a0784696b 100644 --- a/src/add-ons/kernel/file_systems/bfs/Inode.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Inode.cpp @@ -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