Fixed a problem to load the root element in a Unix like file-system

This commit is contained in:
David Capello 2008-03-28 02:55:15 +00:00
parent 19070bbfc1
commit 0ffbf5164c
2 changed files with 11 additions and 1 deletions

View File

@ -14,8 +14,13 @@ endif
######################################################################
# Flags for GCC in GNU/Linux system
CFLAGS =
#ifdef DEBUGMODE
CFLAGS = `allegro-config --cflags debug`
LFLAGS = `allegro-config --libs debug`
#else
CFLAGS = `allegro-config --cflags`
LFLAGS = `allegro-config --libs`
#endif
######################################################################
# GCC stuff

View File

@ -982,6 +982,11 @@ static FileItem *get_fileitem_by_path(const char *path, bool create_if_not)
FileItem *fileitem;
int attrib;
#ifdef ALLEGRO_UNIX
if (*path == 0)
return rootitem;
#endif
key = get_key_for_filename(path);
fileitem = hash_lookup(hash_fileitems, key);
jfree(key);