From 26b247483301d117b2be9e4ff2763da847948096 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 3 Nov 2024 13:07:08 +0100 Subject: Fix little typos and mistakes. --- plugins/pychrysalide/analysis/scan/exprs/constants.c | 4 ++-- src/analysis/contents/memory.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/pychrysalide/analysis/scan/exprs/constants.c b/plugins/pychrysalide/analysis/scan/exprs/constants.c index b11ac4c..adf35bb 100644 --- a/plugins/pychrysalide/analysis/scan/exprs/constants.c +++ b/plugins/pychrysalide/analysis/scan/exprs/constants.c @@ -51,7 +51,7 @@ bool define_literal_expression_value_type_constants(PyTypeObject *type) values = PyDict_New(); - result = add_const_to_group(values, "LVT_BOOLEAN", LVT_BOOLEAN); + result = add_const_to_group(values, "BOOLEAN", LVT_BOOLEAN); if (result) result = add_const_to_group(values, "SIGNED_INTEGER", LVT_SIGNED_INTEGER); if (result) result = add_const_to_group(values, "UNSIGNED_INTEGER", LVT_UNSIGNED_INTEGER); if (result) result = add_const_to_group(values, "STRING", LVT_STRING); @@ -77,7 +77,7 @@ bool define_literal_expression_value_type_constants(PyTypeObject *type) * Paramètres : arg = argument quelconque à tenter de convertir. * * dst = destination des valeurs récupérées en cas de succès. * * * -* Description : Tente de convertir en constante LiteralValueType. * +* Description : Tente de convertir en constante LiteralValueType. * * * * Retour : Bilan de l'opération, voire indications supplémentaires. * * * diff --git a/src/analysis/contents/memory.c b/src/analysis/contents/memory.c index f7d2bd0..a3acc3b 100644 --- a/src/analysis/contents/memory.c +++ b/src/analysis/contents/memory.c @@ -34,7 +34,6 @@ #include "memory-int.h" -#include "../content-int.h" #include "../db/misc/rlestr.h" #include "../storage/serialize-int.h" #include "../../common/extstr.h" @@ -337,6 +336,7 @@ bool g_memory_content_create(GMemoryContent *content, const bin_t *data, phys_t if (allocated == NULL) { LOG_ERROR_N("malloc"); + result = false; goto exit; } -- cgit v0.11.2-87-g4458