Fix offset when returning dump hardware list.

This commit is contained in:
2025-10-20 00:40:42 +01:00
parent 0326c81a91
commit d6ea7db911

View File

@@ -249,7 +249,7 @@ AARU_EXPORT int32_t AARU_CALL aaruf_get_dumphw(void *context, uint8_t *buffer, s
*length = required_length;
// Start to iterate and copy the data
size_t offset = 0;
size_t offset = sizeof(DumpHardwareHeader);
for(uint32_t i = 0; i < ctx->dump_hardware_header.entries; i++)
{
size_t entry_size = sizeof(DumpHardwareEntry);