From 02cf2335346b0cb1fcf55d5e4953d0a1c3f63088 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Sat, 12 Oct 2024 02:59:08 +0300 Subject: [PATCH] library: Return if Length == 0 in DumpData --- library/dumper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/dumper.cpp b/library/dumper.cpp index c492677..6fcccf0 100644 --- a/library/dumper.cpp +++ b/library/dumper.cpp @@ -39,6 +39,9 @@ void WriteRaw(const char *format, ...) void DumpData(const char *Description, void *Address, unsigned long Length) { + if (Length == 0) + return; + SmartLock(DumperLock); WriteRaw("-------------------------------------------------------------------------\n"); unsigned char *AddressChar = (unsigned char *)Address;