diff options
author | Alexis211 <alexis211@gmail.com> | 2009-10-23 20:43:48 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-10-23 20:43:48 +0200 |
commit | 66630e4154b7c1c47d6223fe5a8607cd269446a0 (patch) | |
tree | 21995ed408e9ecbaba48f29ed67c91c4b0dad950 /Source/Kernel/VFS/DirectoryNode.class.cpp | |
parent | 48de0cd029b52f64f76345b6e1fdf3cde5c58de3 (diff) | |
download | Melon-66630e4154b7c1c47d6223fe5a8607cd269446a0.tar.gz Melon-66630e4154b7c1c47d6223fe5a8607cd269446a0.zip |
Some changes, and implemented rm in userland shell.
Diffstat (limited to 'Source/Kernel/VFS/DirectoryNode.class.cpp')
-rw-r--r-- | Source/Kernel/VFS/DirectoryNode.class.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Kernel/VFS/DirectoryNode.class.cpp b/Source/Kernel/VFS/DirectoryNode.class.cpp index 381ff49..74c1ff8 100644 --- a/Source/Kernel/VFS/DirectoryNode.class.cpp +++ b/Source/Kernel/VFS/DirectoryNode.class.cpp @@ -7,12 +7,14 @@ call_t DirectoryNode::m_callTable[] = { }; u32int DirectoryNode::getIdxChildSC(u32int idx) { + if (!runnable()) return (u32int) - 1; FSNode* n = getChild(idx); if (n != NULL) return n->resId(); return (u32int) - 1; } u32int DirectoryNode::getNameChildSC(u32int name) { + if (!runnable()) return (u32int) - 1; String* w = (String*)name; FSNode* n = getChild(*w); if (n != NULL) return n->resId(); |