mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
update cmvs hook
This commit is contained in:
parent
e489c38990
commit
303140dfbf
@ -4266,6 +4266,8 @@ bool InsertCMVS2Hook()
|
|||||||
enum { addr_offset = 3 }; // offset from the beginning of the function
|
enum { addr_offset = 3 }; // offset from the beginning of the function
|
||||||
ULONG range = min(processStopAddress - processStartAddress, MAX_REL_ADDR);
|
ULONG range = min(processStopAddress - processStartAddress, MAX_REL_ADDR);
|
||||||
ULONG addr = MemDbg::findBytes(bytes, sizeof(bytes), processStartAddress, processStartAddress + range);
|
ULONG addr = MemDbg::findBytes(bytes, sizeof(bytes), processStartAddress, processStartAddress + range);
|
||||||
|
// Artikash 11/9/2018: Not sure, but isn't findCallerAddress a better way to do this?
|
||||||
|
if (!addr) addr = MemDbg::findCallerAddressAfterInt3((DWORD)GetGlyphOutlineA, processStartAddress, processStopAddress);
|
||||||
if (!addr) {
|
if (!addr) {
|
||||||
ConsoleOutput("vnreng:CMVS2: pattern not found");
|
ConsoleOutput("vnreng:CMVS2: pattern not found");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user