diff --git a/src/servers/registrar/RosterAppInfo.cpp b/src/servers/registrar/RosterAppInfo.cpp index 7e012a03ec..176c8a2fb1 100644 --- a/src/servers/registrar/RosterAppInfo.cpp +++ b/src/servers/registrar/RosterAppInfo.cpp @@ -10,6 +10,9 @@ #include #include +#include +#include + using std::nothrow; @@ -33,7 +36,9 @@ RosterAppInfo::Init(thread_id thread, team_id team, port_id port, uint32 flags, this->team = team; this->port = port; this->flags = flags; - this->ref = *ref; + BEntry entry(ref, true); + if (entry.GetRef(&this->ref) != B_OK) + this->ref = *ref; if (signature) strlcpy(this->signature, signature, B_MIME_TYPE_LENGTH); else