* get_vnode() now accepts a NULL parameter for the fsNode argument.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25660 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
61de73e29c
commit
1e18692e12
@ -3192,7 +3192,7 @@ publish_vnode(fs_volume *volume, ino_t vnodeID, void *privateNode,
|
|||||||
|
|
||||||
|
|
||||||
extern "C" status_t
|
extern "C" status_t
|
||||||
get_vnode(fs_volume *volume, ino_t vnodeID, void **fsNode)
|
get_vnode(fs_volume *volume, ino_t vnodeID, void **_fsNode)
|
||||||
{
|
{
|
||||||
struct vnode *vnode;
|
struct vnode *vnode;
|
||||||
|
|
||||||
@ -3216,9 +3216,10 @@ get_vnode(fs_volume *volume, ino_t vnodeID, void **fsNode)
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
*fsNode = resolvedNode.private_node;
|
if (_fsNode != NULL)
|
||||||
} else
|
*_fsNode = resolvedNode.private_node;
|
||||||
*fsNode = vnode->private_node;
|
} else if (_fsNode != NULL)
|
||||||
|
*_fsNode = vnode->private_node;
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user