summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/format
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysa/format')
-rw-r--r--plugins/pychrysa/format/dex/module.c2
-rw-r--r--plugins/pychrysa/format/module.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pychrysa/format/dex/module.c b/plugins/pychrysa/format/dex/module.c
index cea0702..8e6b775 100644
--- a/plugins/pychrysa/format/dex/module.c
+++ b/plugins/pychrysa/format/dex/module.c
@@ -58,7 +58,7 @@ bool add_format_dex_module_to_python_module(PyObject *super)
Py_INCREF(module);
ret = PyModule_AddObject(super, "pychrysalide.format.dex", module);
- result = (ret != 0);
+ result = (ret == 0);
if (ret != 0) /* ... */;
diff --git a/plugins/pychrysa/format/module.c b/plugins/pychrysa/format/module.c
index 8bf2ed2..92c3966 100644
--- a/plugins/pychrysa/format/module.c
+++ b/plugins/pychrysa/format/module.c
@@ -61,7 +61,7 @@ bool add_format_module_to_python_module(PyObject *super)
Py_INCREF(module);
ret = PyModule_AddObject(super, "pychrysalide.format", module);
- result = (ret != 0);
+ result = (ret == 0);
result &= register_python_binary_format(module);
result &= add_format_executable_to_python_module(module);