Kernel/VFS - Error catching in MkNod/O_CREAT
[tpg/acess2.git] / KernelLand / Kernel / vfs / dir.c
index d4c1530..e2b124d 100644 (file)
@@ -97,7 +97,7 @@ int VFS_MkNod(const char *Path, Uint Flags)
        _CloseNode(parent);
        
        // Error Check
-       if(ret == 0) {
+       if(ret != 0) {
                LEAVE('i', -1);
                return -1;
        }

UCC git Repository :: git.ucc.asn.au