Skip to content

Commit

Permalink
feat: Add debug print for module size
Browse files Browse the repository at this point in the history
  • Loading branch information
igromanru committed Jun 6, 2024
1 parent bc0f540 commit 181beb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ namespace Hook
return FALSE;
#endif
}
#ifdef _DEBUG
printf("Debug: d3d11.dll module size: %lu\n", info.SizeOfImage);
#endif

const auto searchStart = reinterpret_cast<uintptr_t>(moduleHandle) + 0x100000;
const auto searchLength = static_cast<size_t>(info.SizeOfImage - 0x1000);
auto functionAddress = reinterpret_cast<LPVOID>(IgroWidgets::FindPattern(searchStart, searchLength,
Expand Down

0 comments on commit 181beb7

Please sign in to comment.