Core: CX86Ops::OrConstToVariable should be a dword_ptr not a word_ptr

This commit is contained in:
zilmar 2024-01-04 10:33:07 +10:30
parent dafa1fb24d
commit 320769d991
1 changed files with 2 additions and 2 deletions

View File

@ -529,12 +529,12 @@ void CX86Ops::OrConstToVariable(void * Variable, const char * VariableName, uint
{ {
stdstr_f SymbolKey("0x%X", Variable); stdstr_f SymbolKey("0x%X", Variable);
AddSymbol(SymbolKey.c_str(), VariableName); AddSymbol(SymbolKey.c_str(), VariableName);
or_(asmjit::x86::word_ptr((uint64_t)Variable), Const); or_(asmjit::x86::dword_ptr((uint64_t)Variable), Const);
RemoveSymbol(SymbolKey.c_str()); RemoveSymbol(SymbolKey.c_str());
} }
else else
{ {
or_(asmjit::x86::word_ptr((uint64_t)Variable), Const); or_(asmjit::x86::dword_ptr((uint64_t)Variable), Const);
} }
} }