QueryPolicy::NodeGetAttribute(): Get the type too

This commit is contained in:
Ingo Weinhold 2011-07-08 15:42:24 +02:00
parent 28269859c8
commit af1cc77849

View File

@ -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;