diff --git a/configure.ac b/configure.ac index 61a3810..7402b56 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_PREREQ([2.71]) AC_INIT( [libevtx], - [20240504], + [20240505], [joachim.metz@gmail.com]) AC_CONFIG_SRCDIR( diff --git a/pyevtx/pyevtx_record.c b/pyevtx/pyevtx_record.c index 6396465..76b7fe5 100644 --- a/pyevtx/pyevtx_record.c +++ b/pyevtx/pyevtx_record.c @@ -83,7 +83,7 @@ PyMethodDef pyevtx_record_object_methods[] = { { "get_event_identifier", (PyCFunction) pyevtx_record_get_event_identifier, METH_NOARGS, - "get_event_identifier() -> Integer or None\n" + "get_event_identifier() -> Integer\n" "\n" "Retrieves the event identifier." }, @@ -918,7 +918,7 @@ PyObject *pyevtx_record_get_event_identifier( Py_END_ALLOW_THREADS - if( result == -1 ) + if( result != 1 ) { pyevtx_error_raise( error, @@ -931,13 +931,6 @@ PyObject *pyevtx_record_get_event_identifier( return( NULL ); } - else if( result == 0 ) - { - Py_IncRef( - Py_None ); - - return( Py_None ); - } integer_object = PyLong_FromUnsignedLong( (unsigned long) value_32bit );