diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-09-16 20:08:57 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-09-16 20:08:57 (GMT) |
commit | af083f8bd6da340214ae392451dde5782fb79039 (patch) | |
tree | ffc45880157f4fdd986b1e16aa6498bef149185a /src/format/executable.c | |
parent | 74642fbdeefaec21885e5fb6cad432e3e3b47cdb (diff) |
Used the new vmpa_t type in binary portions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@405 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/executable.c')
-rw-r--r-- | src/format/executable.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/format/executable.c b/src/format/executable.c index f4c8739..6b39ac8 100644 --- a/src/format/executable.c +++ b/src/format/executable.c @@ -138,10 +138,14 @@ vmpa_t g_exe_format_get_entry_point(const GExeFormat *format) GBinPortion *g_exe_format_get_portions(GExeFormat *format) { + vmpa2t addr; /* Emplacement vide de sens */ + if (format->portions == NULL) { format->portions = g_binary_portion_new(BPC_RAW); - g_binary_portion_set_values(format->portions, 0, G_BIN_FORMAT(format)->length, 0); + + init_vmpa(&addr, 0, VMPA_NO_VIRTUAL); + g_binary_portion_set_values(format->portions, &addr, G_BIN_FORMAT(format)->length); if (format->refine_portions != NULL) format->refine_portions(format, format->portions); |