From af7789f7e80e8d03f4a38fc20dc9acefe27101d1 Mon Sep 17 00:00:00 2001 From: jakcron Date: Mon, 28 Sep 2015 22:05:41 +0800 Subject: [PATCH] makerom: fixed romfs bug --- makerom/romfs_gen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makerom/romfs_gen.c b/makerom/romfs_gen.c index 5a99ba4..9f35c60 100644 --- a/makerom/romfs_gen.c +++ b/makerom/romfs_gen.c @@ -376,7 +376,7 @@ void AddDirToRomfs(romfs_buildctx *ctx, fs_dir *fs, u32 parent, u32 sibling) u32_to_u8(entry->namesize,0,LE); /* Get hash table index */ - hashindex = GetFileHashTableIndex(ctx, parent, (fs_romfs_char*)ROMFS_EMPTY_PATH); + hashindex = GetDirHashTableIndex(ctx, parent, (fs_romfs_char*)ROMFS_EMPTY_PATH); /* Increment used dir table length */ ctx->u_dirTableLen += sizeof(romfs_direntry); @@ -390,7 +390,7 @@ void AddDirToRomfs(romfs_buildctx *ctx, fs_dir *fs, u32 parent, u32 sibling) memcpy(name_pos,(u8*)fs->name,fs->name_len); /* Get hash table index */ - hashindex = GetFileHashTableIndex(ctx, parent, fs->name); + hashindex = GetDirHashTableIndex(ctx, parent, fs->name); /* Increment used dir table length */ ctx->u_dirTableLen += sizeof(romfs_direntry) + (u32)align(fs->name_len,4);