fixed GetVolume()

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23590 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-01-17 19:44:39 +00:00
parent 4cfc1fee3e
commit 816fc92124

View File

@ -361,7 +361,7 @@ BPartition::GetPath(BPath* path) const
status_t
BPartition::GetVolume(BVolume* volume) const
{
if (volume)
if (!volume)
return B_BAD_VALUE;
return volume->SetTo(_PartitionData()->volume);