Gerald Pfeifer : dbghelp: Also return a value in an error case in elf_map_file_read.
Alexandre Julliard
julliard at winehq.org
Mon Jan 3 10:58:01 CST 2011
Module: wine
Branch: master
Commit: 061b50eda5e727cd6716832a983d3c47700434e8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=061b50eda5e727cd6716832a983d3c47700434e8
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Sat Jan 1 14:32:05 2011 +0100
dbghelp: Also return a value in an error case in elf_map_file_read.
---
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..a64fe9f 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;
}
}
More information about the wine-cvs
mailing list