summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/analysis')
-rw-r--r--plugins/pychrysalide/analysis/contents/encapsulated.c2
-rw-r--r--plugins/pychrysalide/analysis/contents/file.c2
-rw-r--r--plugins/pychrysalide/analysis/contents/memory.c2
-rw-r--r--plugins/pychrysalide/analysis/loaded.c2
-rw-r--r--plugins/pychrysalide/analysis/loading.c6
5 files changed, 7 insertions, 7 deletions
diff --git a/plugins/pychrysalide/analysis/contents/encapsulated.c b/plugins/pychrysalide/analysis/contents/encapsulated.c
index 03db638..7af79e8 100644
--- a/plugins/pychrysalide/analysis/contents/encapsulated.c
+++ b/plugins/pychrysalide/analysis/contents/encapsulated.c
@@ -71,7 +71,7 @@ static PyObject *py_encaps_content_new(PyTypeObject *type, PyObject *args, PyObj
get_python_binary_content_type(), &base_obj,
&path,
get_python_binary_content_type(), &endpoint_obj);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
base = G_BIN_CONTENT(pygobject_get(base_obj));
endpoint = G_BIN_CONTENT(pygobject_get(endpoint_obj));
diff --git a/plugins/pychrysalide/analysis/contents/file.c b/plugins/pychrysalide/analysis/contents/file.c
index b7a217a..f660656 100644
--- a/plugins/pychrysalide/analysis/contents/file.c
+++ b/plugins/pychrysalide/analysis/contents/file.c
@@ -63,7 +63,7 @@ static PyObject *py_file_content_new(PyTypeObject *type, PyObject *args, PyObjec
GBinContent *content; /* Version GLib du contenu */
ret = PyArg_ParseTuple(args, "s", &filename);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
content = g_file_content_new(filename);
diff --git a/plugins/pychrysalide/analysis/contents/memory.c b/plugins/pychrysalide/analysis/contents/memory.c
index 89a2aa8..d1da2e8 100644
--- a/plugins/pychrysalide/analysis/contents/memory.c
+++ b/plugins/pychrysalide/analysis/contents/memory.c
@@ -65,7 +65,7 @@ static PyObject *py_memory_content_new(PyTypeObject *type, PyObject *args, PyObj
GBinContent *content; /* Version GLib du contenu */
ret = PyArg_ParseTuple(args, "S", &data);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
ret = PyBytes_AsStringAndSize(data, &buffer, &length);
if (ret == -1) Py_RETURN_NONE;
diff --git a/plugins/pychrysalide/analysis/loaded.c b/plugins/pychrysalide/analysis/loaded.c
index 37d11b4..ae14164 100644
--- a/plugins/pychrysalide/analysis/loaded.c
+++ b/plugins/pychrysalide/analysis/loaded.c
@@ -158,7 +158,7 @@ static PyObject *py_loaded_content_detect_obfuscators(PyObject *self, PyObject *
size_t i; /* Boucle de parcours */
ret = PyArg_ParseTuple(args, "p", &version);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
content = G_LOADED_CONTENT(pygobject_get(self));
diff --git a/plugins/pychrysalide/analysis/loading.c b/plugins/pychrysalide/analysis/loading.c
index f785a53..0b06bd1 100644
--- a/plugins/pychrysalide/analysis/loading.c
+++ b/plugins/pychrysalide/analysis/loading.c
@@ -85,7 +85,7 @@ static PyObject *py_content_explorer_populate_group(PyObject *self, PyObject *ar
GBinContent *content; /* Contenu nouveau au final */
ret = PyArg_ParseTuple(args, "KO!", &wid, get_python_binary_content_type(), &content_obj);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
explorer = G_CONTENT_EXPLORER(pygobject_get(self));
content = G_BIN_CONTENT(pygobject_get(content_obj));
@@ -122,7 +122,7 @@ static PyObject *py_content_explorer_note_detected(PyObject *self, PyObject *arg
GLoadedContent *loaded; /* Contenu chargé au final */
ret = PyArg_ParseTuple(args, "KO!", &wid, get_python_loaded_content_type(), &loaded_obj);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
explorer = G_CONTENT_EXPLORER(pygobject_get(self));
loaded = G_LOADED_CONTENT(pygobject_get(loaded_obj));
@@ -254,7 +254,7 @@ static PyObject *py_content_resolver_add_detected(PyObject *self, PyObject *args
GLoadedContent *loaded; /* Contenu chargé au final */
ret = PyArg_ParseTuple(args, "KO!", &wid, get_python_loaded_content_type(), &loaded_obj);
- if (!ret) Py_RETURN_NONE;
+ if (!ret) return NULL;
resolver = G_CONTENT_RESOLVER(pygobject_get(self));
loaded = G_LOADED_CONTENT(pygobject_get(loaded_obj));