From 0d5a8d0594a522d44fd4b3220f6e6b297f32d19e Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 11 Aug 2014 08:05:33 +0000 Subject: [PATCH] [CABMAN] - Don't crash when a directory is specified instead of a file list (i.e. specified_files.root.normalized_name == NULL) svn path=/trunk/; revision=63860 --- reactos/tools/cdmake/dirhash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/tools/cdmake/dirhash.c b/reactos/tools/cdmake/dirhash.c index 1b1d27f7a6e..21d0c7c5d3f 100644 --- a/reactos/tools/cdmake/dirhash.c +++ b/reactos/tools/cdmake/dirhash.c @@ -210,7 +210,8 @@ dir_hash_destroy_dir(struct target_dir_hash *dh, struct target_dir_entry *de) free(tf->target_name); free(tf); } - delete_entry_by_normname(dh, de->normalized_name); + if (de->normalized_name) + delete_entry_by_normname(dh, de->normalized_name); free(de->normalized_name); free(de->case_name); }