diff options
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); |