Skip to content

Commit

Permalink
Worked on Python-bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Mar 3, 2024
1 parent 2581d4c commit 489f480
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ([2.71])

AC_INIT(
[libcreg],
[20240227],
[20240303],
[joachim.metz@gmail.com])

AC_CONFIG_SRCDIR(
Expand Down
1 change: 0 additions & 1 deletion cregtools/cregexport.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ int main( int argc, char * const argv[] )
system_character_t *source = NULL;
char *program = "cregexport";
system_integer_t option = 0;
size_t source_length = 0;
int result = 0;
int verbose = 0;

Expand Down
4 changes: 2 additions & 2 deletions libcreg.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<package >
<metadata>
<id>libcreg</id>
<version>20240227</version>
<version>20240303</version>
<authors>Joachim Metz</authors>
<owners>joachimmetz</owners>
<license type="expression">LGPL-3.0-or-later</license>
<projectUrl>https://github.com/libyal/libcreg</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<title>libcreg</title>
<description>Library to access the Windows 9x/Me Registry File (CREG) format</description>
<releaseNotes>Release of libcreg 20240227</releaseNotes>
<releaseNotes>Release of libcreg 20240303</releaseNotes>
<copyright>Copyright (C) 2013-2024</copyright>
<tags>native</tags>
</metadata>
Expand Down
8 changes: 4 additions & 4 deletions pycreg/pycreg_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ PyObject *pycreg_value_get_data_size(
libcerror_error_t *error = NULL;
PyObject *integer_object = NULL;
static char *function = "pycreg_value_get_data_size";
size64_t data_size = 0;
size_t value_data_size = 0;
int result = 0;

PYCREG_UNREFERENCED_PARAMETER( arguments )
Expand All @@ -701,7 +701,7 @@ PyObject *pycreg_value_get_data_size(

result = libcreg_value_get_value_data_size(
pycreg_value->value,
&data_size,
&value_data_size,
&error );

Py_END_ALLOW_THREADS
Expand All @@ -711,7 +711,7 @@ PyObject *pycreg_value_get_data_size(
pycreg_error_raise(
error,
PyExc_IOError,
"%s: unable to retrieve data size.",
"%s: unable to retrieve value data size.",
function );

libcerror_error_free(
Expand All @@ -720,7 +720,7 @@ PyObject *pycreg_value_get_data_size(
return( NULL );
}
integer_object = pycreg_integer_unsigned_new_from_64bit(
(uint64_t) data_size );
(uint64_t) value_data_size );

return( integer_object );
}
Expand Down

0 comments on commit 489f480

Please sign in to comment.