To clear the current entry_ref
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5477 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -197,6 +197,8 @@ public:
|
||||
directory = ref.directory;
|
||||
if(ref.name)
|
||||
strcpy(name, ref.name);
|
||||
else
|
||||
name[0] = 0;
|
||||
}
|
||||
private:
|
||||
dev_t device;
|
||||
|
||||
@@ -173,6 +173,8 @@ BMediaFiles::GetRefFor(const char *type,
|
||||
|
||||
rv = QueryServer(SERVER_GETREFFOR, &request, sizeof(request), &reply, sizeof(reply));
|
||||
if (rv != B_OK) {
|
||||
entry_ref ref;
|
||||
*out_ref = ref;
|
||||
ERROR("BMediaFiles::GetRefFor: failed to getreffor (error %#lx)\n", rv);
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user