dbghelp: Also return a value in an error case in elf_map_file_read.
This commit is contained in:
parent
a55962cf41
commit
061b50eda5
|
@ -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,
|
return ReadProcessMemory(emfd->u.process.handle,
|
||||||
(void*)((unsigned long)emfd->u.process.load_addr + (unsigned long)off),
|
(void*)((unsigned long)emfd->u.process.load_addr + (unsigned long)off),
|
||||||
buf, len, &dw) && dw == len;
|
buf, len, &dw) && dw == len;
|
||||||
default: assert(0);
|
default:
|
||||||
|
assert(0);
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue