From 061b50eda5e727cd6716832a983d3c47700434e8 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sat, 1 Jan 2011 14:32:05 +0100 Subject: [PATCH] dbghelp: Also return a value in an error case in elf_map_file_read. --- dlls/dbghelp/elf_module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c index ff8b9d2137e..a64fe9f9c73 100644 --- a/dlls/dbghelp/elf_module.c +++ b/dlls/dbghelp/elf_module.c @@ -261,7 +261,9 @@ static BOOL elf_map_file_read(struct image_file_map* fmap, struct elf_map_file_d return ReadProcessMemory(emfd->u.process.handle, (void*)((unsigned long)emfd->u.process.load_addr + (unsigned long)off), buf, len, &dw) && dw == len; - default: assert(0); + default: + assert(0); + return FALSE; } }