QueryPolicy::NodeGetAttribute(): Get the type too
This commit is contained in:
parent
28269859c8
commit
af1cc77849
@ -187,6 +187,14 @@ struct Query::QueryPolicy {
|
||||
|
||||
error = cookie->ReadAttribute(0, buffer, _size);
|
||||
|
||||
// also get the attribute type
|
||||
if (error == B_OK) {
|
||||
struct stat st;
|
||||
error = cookie->ReadAttributeStat(&st);
|
||||
if (error == B_OK)
|
||||
*_type = st.st_type;
|
||||
}
|
||||
|
||||
cookie->Close();
|
||||
delete cookie;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user