summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r--plugins/pychrysalide/core/constants.c2
-rw-r--r--plugins/pychrysalide/glibext/constants.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/pychrysalide/core/constants.c b/plugins/pychrysalide/core/constants.c
index f3ec530..99abf95 100644
--- a/plugins/pychrysalide/core/constants.c
+++ b/plugins/pychrysalide/core/constants.c
@@ -109,7 +109,7 @@ int convert_to_log_message_type(PyObject *arg, void *dst)
case 1:
value = PyLong_AsUnsignedLong(arg);
- if (value > LMT_COUNT)
+ if (value >= LMT_COUNT)
{
PyErr_SetString(PyExc_TypeError, "invalid value for LogMessageType");
result = 0;
diff --git a/plugins/pychrysalide/glibext/constants.c b/plugins/pychrysalide/glibext/constants.c
index e24a6e0..47bd00d 100644
--- a/plugins/pychrysalide/glibext/constants.c
+++ b/plugins/pychrysalide/glibext/constants.c
@@ -70,6 +70,7 @@ bool define_binary_portion_constants(PyTypeObject *type)
if (result) result = add_const_to_group(values, "READ", PAC_READ);
if (result) result = add_const_to_group(values, "WRITE", PAC_WRITE);
if (result) result = add_const_to_group(values, "EXEC", PAC_EXEC);
+ if (result) result = add_const_to_group(values, "ALL", PAC_ALL);
if (!result)
{