diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/pychrysa/analysis/binary.c | 9 | ||||
-rw-r--r-- | plugins/pychrysa/pychrysa.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/plugins/pychrysa/analysis/binary.c b/plugins/pychrysa/analysis/binary.c index 9e45e27..93b1c57 100644 --- a/plugins/pychrysa/analysis/binary.c +++ b/plugins/pychrysa/analysis/binary.c @@ -28,6 +28,9 @@ #include <pygobject.h> +#include <i18n.h> + + #include <analysis/binary.h> @@ -82,7 +85,11 @@ static PyObject *py_loaded_binary_new(PyTypeObject *type, PyObject *args, PyObje if (!ret) return NULL; ret = PyObject_IsInstance(content_obj, (PyObject *)get_python_binary_content_type()); - if (!ret) return NULL; + if (ret == 0) + { + PyErr_SetString(PyExc_TypeError, _("Expected a BinContent as argument")); + return NULL; + } content = G_BIN_CONTENT(pygobject_get(content_obj)); binary = g_loaded_binary_new(content); diff --git a/plugins/pychrysa/pychrysa.c b/plugins/pychrysa/pychrysa.c index c77553b..d241b92 100644 --- a/plugins/pychrysa/pychrysa.c +++ b/plugins/pychrysa/pychrysa.c @@ -526,6 +526,8 @@ PyMODINIT_FUNC PyInit_pychrysalide(void) init_work_queue(NULL/* !! */); #endif + init_work_queue(NULL/* !! */); + //////////////////////// |