From e72a8290a9ede1caa2dc842e9c9b473d3bc35819 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 5 Nov 2024 17:51:02 -0500 Subject: MSVC RTTI: Formatting changes --- plugins/msvc_rtti/rtti.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'plugins/msvc_rtti/rtti.cpp') diff --git a/plugins/msvc_rtti/rtti.cpp b/plugins/msvc_rtti/rtti.cpp index 073acdd6..b84ffff4 100644 --- a/plugins/msvc_rtti/rtti.cpp +++ b/plugins/msvc_rtti/rtti.cpp @@ -64,7 +64,8 @@ CompleteObjectLocator::CompleteObjectLocator(BinaryView *view, uint64_t address) if (signature == COL_SIG_REV1) { pSelf = static_cast(reader.Read32()); - } else + } + else { pSelf = 0; } @@ -655,7 +656,8 @@ void MicrosoftRTTIProcessor::ProcessRTTI() if (auto classInfo = ProcessRTTI(coLocatorAddr)) m_classInfo[coLocatorAddr] = classInfo.value(); } - } else if (sigVal == COL_SIG_REV0) + } + else if (sigVal == COL_SIG_REV0) { // Check ?AV optReader.SeekRelative(8); @@ -687,7 +689,8 @@ void MicrosoftRTTIProcessor::ProcessRTTI() { m_logger->LogDebug("Attempting to find VirtualFunctionTables in segment %llx", segment->GetStart()); scan(segment); - } else if (checkWritableRData && rdataSection && rdataSection->GetStart() == segment->GetStart()) + } + else if (checkWritableRData && rdataSection && rdataSection->GetStart() == segment->GetStart()) { m_logger->LogDebug("Attempting to find VirtualFunctionTables in writable rdata segment %llx", segment->GetStart()); @@ -742,7 +745,8 @@ void MicrosoftRTTIProcessor::ProcessVFT() { m_logger->LogDebug("Attempting to find VirtualFunctionTables in segment %llx", segment->GetStart()); scan(segment); - } else if (checkWritableRData && rdataSection && rdataSection->GetStart() == segment->GetStart()) + } + else if (checkWritableRData && rdataSection && rdataSection->GetStart() == segment->GetStart()) { m_logger->LogDebug("Attempting to find VirtualFunctionTables in writable rdata segment %llx", segment->GetStart()); -- cgit v1.3.1