dbghelp: Also return a value in an error case in elf_map_file_read.
Gerald Pfeifer
gerald at pfeifer.com
Sat Jan 1 07:32:05 CST 2011
---
dlls/dbghelp/elf_module.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index ff8b9d2..309f33a 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 0;
}
}
--
1.7.2.2
More information about the wine-patches
mailing list