- if ( VMWriteBytes( [_target pid], [variable address], [variable value], [variable valueSize] ) ) {
+ if ([[variable process] pid] != [_target pid])
+ {
+ [variable setProcess:_target];
+ }
+
+ char buffer[variable->_size];
+ memcpy(buffer, variable->_value, variable->_size);
+ bigEndianValue(buffer, variable);
+
+ if ( VMWriteBytes( [_target pid], [variable address], buffer, [variable valueSize] ) )
+ {