Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Commit ddbaf22

Browse files
committed
Nothing
1 parent 79468be commit ddbaf22

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ClassFromRTTI/ClassFromRTTI.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ void* FindFirstString(void* pBegin, void* pEnd, const char* szString) {
1818
unsigned char* ppEnd = reinterpret_cast<unsigned char*>(pEnd) - unStringLength;
1919
for (unsigned char* pPoint = reinterpret_cast<unsigned char*>(pBegin); pPoint < ppEnd; ++pPoint) {
2020
bool bSuccess = true;
21-
for (uintptr_t j = 0; j < unStringLength; ++j)
22-
{
23-
if (reinterpret_cast<char*>(pPoint)[j] != szString[j])
24-
{
21+
for (uintptr_t j = 0; j < unStringLength; ++j) {
22+
if (reinterpret_cast<char*>(pPoint)[j] != szString[j]) {
2523
bSuccess = false;
2624
break;
2725
}
@@ -189,7 +187,7 @@ void* FindRTTIClass(const char* szModuleName, const char* szName, bool bRVA = fa
189187
// ecx - this
190188
// edx - unused
191189
typedef bool(__fastcall* fnIsTrue)(void* ecx, void* edx);
192-
typedef const char* (__fastcall* fnHelloWorld)(void* ecx, void* edx);
190+
typedef const char*(__fastcall* fnHelloWorld)(void* ecx, void* edx);
193191

194192
int main() {
195193
HMODULE hTestDLL = LoadLibrary(TEXT("TestDLL.dll"));

0 commit comments

Comments
 (0)