summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysa/analysis')
-rw-r--r--plugins/pychrysa/analysis/binaries/module.c2
-rw-r--r--plugins/pychrysa/analysis/module.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pychrysa/analysis/binaries/module.c b/plugins/pychrysa/analysis/binaries/module.c
index 084e0a4..e3daf0e 100644
--- a/plugins/pychrysa/analysis/binaries/module.c
+++ b/plugins/pychrysa/analysis/binaries/module.c
@@ -57,7 +57,7 @@ bool add_binaries_module_to_python_module(PyObject *super)
Py_INCREF(module);
ret = PyModule_AddObject(super, "pychrysalide.analysis.binaries", module);
- result = (ret != 0);
+ result = (ret == 0);
result &= register_python_file_binary(module);
diff --git a/plugins/pychrysa/analysis/module.c b/plugins/pychrysa/analysis/module.c
index 688ea12..05c2e2e 100644
--- a/plugins/pychrysa/analysis/module.c
+++ b/plugins/pychrysa/analysis/module.c
@@ -58,7 +58,7 @@ bool add_analysis_module_to_python_module(PyObject *super)
Py_INCREF(module);
ret = PyModule_AddObject(super, "pychrysalide.analysis", module);
- result = (ret != 0);
+ result = (ret == 0);
result &= register_python_loaded_binary(module);
result &= add_binaries_module_to_python_module(module);