Skip to content
Snippets Groups Projects
Commit b0ab9997 authored by John Hodge's avatar John Hodge
Browse files

Debug, Debug, Debug

parent 3e11c776
No related merge requests found
...@@ -62,7 +62,7 @@ apidoc: ...@@ -62,7 +62,7 @@ apidoc:
$(BIN): $(OBJ) $(MODS) arch/$(ARCHDIR)/link.ld Makefile $(BIN): $(OBJ) $(MODS) arch/$(ARCHDIR)/link.ld Makefile
@echo --- LD -o $(BIN) @echo --- LD -o $(BIN)
@$(LD) $(LDFLAGS) -o $(BIN) $(OBJ) $(MODS) -Map ../Map.$(ARCH).txt @$(LD) $(LDFLAGS) -o $(BIN) $(OBJ) $(MODS) -Map ../Map.$(ARCH).txt
$(DISASM) $(BIN) > $(BIN).dsm $(DISASM) -S $(BIN) > $(BIN).dsm
@wc -l $(SRCFILES) include/*.h > LineCounts.$(ARCH).txt @wc -l $(SRCFILES) include/*.h > LineCounts.$(ARCH).txt
@echo BUILD_NUM = $$(( $(BUILD_NUM) + 1 )) > Makefile.BuildNum.$(ARCH) @echo BUILD_NUM = $$(( $(BUILD_NUM) + 1 )) > Makefile.BuildNum.$(ARCH)
@$(STRIP) $(BIN) @$(STRIP) $(BIN)
......
...@@ -397,6 +397,17 @@ tVFS_Node *VFS_ParsePath(const char *Path, char **TruePath) ...@@ -397,6 +397,17 @@ tVFS_Node *VFS_ParsePath(const char *Path, char **TruePath)
retLength += nextSlash + 1; retLength += nextSlash + 1;
} }
if( !curNode->FindDir ) {
if(curNode->Close) curNode->Close(curNode);
if(TruePath) {
free(*TruePath);
*TruePath = NULL;
}
Log("FindDir fail on '%s'", Path);
LEAVE('n');
return NULL;
}
// Get last node // Get last node
LOG("VFS_ParsePath: FindDir(%p, '%s')", curNode, &Path[ofs]); LOG("VFS_ParsePath: FindDir(%p, '%s')", curNode, &Path[ofs]);
tmpNode = curNode->FindDir(curNode, &Path[ofs]); tmpNode = curNode->FindDir(curNode, &Path[ofs]);
......
...@@ -941,6 +941,7 @@ tVFS_Node *FAT_int_CreateNode(tVFS_Node *Parent, fat_filetable *Entry, int Pos) ...@@ -941,6 +941,7 @@ tVFS_Node *FAT_int_CreateNode(tVFS_Node *Parent, fat_filetable *Entry, int Pos)
tFAT_VolInfo *disk = Parent->ImplPtr; tFAT_VolInfo *disk = Parent->ImplPtr;
ENTER("pParent pFT", Parent, Entry); ENTER("pParent pFT", Parent, Entry);
LOG("disk = %p\n", disk);
memset(&node, 0, sizeof(tVFS_Node)); memset(&node, 0, sizeof(tVFS_Node));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment