[PATCH] winedbg: elf_load_file: return if elf_map_file fails
Paul Bolle
pebolle at tiscali.nl
Wed Oct 28 07:47:15 CDT 2009
If elf_map_file() fails return FALSE directly (and do not call
elf_unmap_file() at leave).
Should fix http://bugs.winehq.org/show_bug.cgi?id=19931
Signed-off-by: Paul Bolle <pebolle at tiscali.nl>
---
dlls/dbghelp/elf_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 6c79c8b..34d4560 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -1063,7 +1063,7 @@ static BOOL elf_load_file(struct process* pcs, const WCHAR* filename,
TRACE("Processing elf file '%s' at %08lx\n", debugstr_w(filename), load_offset);
- if (!elf_map_file(filename, &fmap)) goto leave;
+ if (!elf_map_file(filename, &fmap)) return ret;
/* Next, we need to find a few of the internal ELF headers within
* this thing. We need the main executable header, and the section
--
1.6.5.1
More information about the wine-patches
mailing list