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:
Jérôme Duval
2003-11-25 10:09:36 +00:00
parent 29d7bb65e5
commit 0a8e9c766a
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -197,6 +197,8 @@ public:
directory = ref.directory;
if(ref.name)
strcpy(name, ref.name);
else
name[0] = 0;
}
private:
dev_t device;
+2
View File
@@ -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;
}