summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-12-28 01:18:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-12-28 01:18:24 (GMT)
commit513b9c9b30c8d71decced2491a91c720a52aa910 (patch)
treefa289d4556901733208a2881985e9586db92c83a /plugins/pychrysa/format
parent764a6782ee40c3c3a1bfb67434b33077ece4df88 (diff)
Created Python objects for the GtkBlockView widgets and fixed some bugs.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@311 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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);