Skip to content

Commit 88bb9f3

Browse files
authored
Add files via upload
1 parent b9d044c commit 88bb9f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Detours.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7724,15 +7724,15 @@ namespace Detours {
77247724
const size_t unOffset = reinterpret_cast<size_t>(pAddress) - unBase;
77257725
SetRegisterValue(pCTX, WriteOperand.Info.Memory.Base, WriteOperand.Info.Memory.BaseSize, reinterpret_cast<size_t>(pNewAddress) - unOffset);
77267726
WriteOperand.Info.Memory.HasIndex = false;
7727-
g_CachedOperations.emplace_back(const_cast<void*>(pExceptionAddress), unOperation, const_cast<void*>(pAddress), OperandCopy, static_cast<char*>(pNewAddress) - unOffset);
7727+
g_CachedOperations.emplace_back(const_cast<void*>(pExceptionAddress), unOperation, const_cast<void*>(pAddress), WriteOperand, static_cast<char*>(pNewAddress) - unOffset);
77287728
return;
77297729
}
77307730

77317731
if (unIndex) {
77327732
const size_t unOffset = reinterpret_cast<size_t>(pAddress) - unIndex;
77337733
SetRegisterValue(pCTX, WriteOperand.Info.Memory.Index, WriteOperand.Info.Memory.IndexSize, reinterpret_cast<size_t>(pNewAddress) - unOffset);
77347734
WriteOperand.Info.Memory.HasBase = false;
7735-
g_CachedOperations.emplace_back(const_cast<void*>(pExceptionAddress), unOperation, const_cast<void*>(pAddress), OperandCopy, static_cast<char*>(pNewAddress) - unOffset);
7735+
g_CachedOperations.emplace_back(const_cast<void*>(pExceptionAddress), unOperation, const_cast<void*>(pAddress), WriteOperand, static_cast<char*>(pNewAddress) - unOffset);
77367736
return;
77377737
}
77387738
}

0 commit comments

Comments
 (0)