mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-14 16:19:17 +00:00
Don't print random data as a string
This commit is contained in:
1 parent
bf5320edae
commit
ffdcf5444e
1 file changed
+1
-5
@@ -255,11 +255,7 @@ Serialiser::Serialiser(const char *path, Mode mode, bool debugMode)
|
||||
|
||||
if(header.magic != MAGIC_HEADER)
|
||||
{
|
||||
char magicRef[5] = { 0 };
|
||||
char magicFile[5] = { 0 };
|
||||
memcpy(magicRef, &MAGIC_HEADER, sizeof(uint32_t));
|
||||
memcpy(magicFile, &header.magic, sizeof(uint32_t));
|
||||
RDCERR("Invalid capture file. Expected magic %s, got %s", magicRef, magicFile);
|
||||
RDCERR("Invalid capture file. Expected magic %08x, got %08x", MAGIC_HEADER, (uint32_t)header.magic);
|
||||
|
||||
m_ErrorCode = eSerError_Corrupt;
|
||||
m_HasError = true;
|
||||
|
||||
Reference in new issue
Block a user