Explicitly allow not giving a relative path.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33272 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström 2009-09-24 21:35:10 +00:00
parent 904acde1c2
commit 0d62f09d74
1 changed files with 4 additions and 2 deletions

View File

@ -40,13 +40,15 @@ OpenWithTracker(const char* path)
status_t
OpenWithTracker(directory_which which, const char* relativePath,
OpenWithTracker(directory_which which, const char* relativePath = NULL,
bool createDirectory = false, BVolume* volume = NULL)
{
status_t status;
BPath path;
find_directory(which, &path, createDirectory, volume);
path.Append(relativePath);
if (relativePath)
path.Append(relativePath);
entry_ref ref;
BEntry entry(path.Path());