Linux 32bit fix.

develop
Petr Mrázek 2011-02-23 20:13:29 +01:00
parent 9b854be327
commit a5479a4bef
1 changed files with 2 additions and 2 deletions

@ -432,7 +432,7 @@ void NormalProcess::writeWord (uint32_t offset, uint16_t data)
orig |= data;
ptrace(PTRACE_POKEDATA,d->my_handle, offset, orig);
#else
uint32_t orig = readDWord(offset);
uint32_t orig = Process::readDWord(offset);
orig &= 0xFFFF0000;
orig |= data;
ptrace(PTRACE_POKEDATA,d->my_handle, offset, orig);
@ -447,7 +447,7 @@ void NormalProcess::writeByte (uint32_t offset, uint8_t data)
orig |= data;
ptrace(PTRACE_POKEDATA,d->my_handle, offset, orig);
#else
uint32_t orig = readDWord(offset);
uint32_t orig = Process::readDWord(offset);
orig &= 0xFFFFFF00;
orig |= data;
ptrace(PTRACE_POKEDATA,d->my_handle, offset, orig);