Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Fix this adjustment not being used for virtual hooking
Browse files Browse the repository at this point in the history
  • Loading branch information
Archengius committed Jun 18, 2020
1 parent da321d7 commit d85be5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using namespace std::filesystem;

static DllLoader* dllLoader;

extern "C" __declspec(dllexport) const wchar_t* bootstrapperVersion = L"2.0.10";
extern "C" __declspec(dllexport) const wchar_t* bootstrapperVersion = L"2.0.11";

bool EXPORTS_IsLoaderModuleLoaded(const char* moduleName) {
return GetModuleHandleA(moduleName) != nullptr;
Expand Down Expand Up @@ -83,7 +83,7 @@ bool EXPORTS_AddConstructorHook(ConstructorHookThunk ConstructorThunk, VirtualFu
}
}
if (TableDefinition == nullptr) {
FixInfo->Fixes.push_back(VTableDefinition{});
FixInfo->Fixes.push_back(VTableDefinition{FunctionInfo.ThisAdjustment});
TableDefinition = &FixInfo->Fixes[FixInfo->Fixes.size() - 1];
}
TableDefinition->bFlushCaches = true;
Expand Down

0 comments on commit d85be5e

Please sign in to comment.