library: Return if Length == 0 in DumpData

This commit is contained in:
EnderIce2 2024-10-12 02:59:08 +03:00
parent e8e2aa4a5f
commit 02cf233534
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -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;