function BodySetValue(Value: Single): Boolean;
begin
try
PBYTE(@Value)^ := PBYTE(@Value)^ xor $3A;
PBYTE(Pointer(DWORD(@Value) + 3))^ := PBYTE(Pointer(DWORD(@Value) + 3))^ xor $B8;
WPM4Byte(BodyAlloc[2] + $660, PDWORD(@Value)^);
except
end;
end;
end.
3A, B8, +3 이 부분들 어떻게 바뀐지 아시는 형님… 부탁드립니다
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+64 | 10-20 | 8934 | |
| 9794 | 01-31 | 46 | ||
| 9793 | 01-30 | 99 | ||
| 9792 | dma 구해용+1 | 01-30 | 118 | |
| 9791 | 01-30 | 118 | ||
| 9790 | 01-29 | 90 | ||
| 9789 | 01-28 | 243 | ||
| 9788 | 01-28 | 61 | ||
| 9787 | 01-27 | 215 | ||
| 9786 | 01-26 | 102 | ||
| 9785 | 01-26 | 206 | ||
| 9784 | 01-23 | 305 | ||
| 9783 | dma쓰시는분?+3 | 01-22 | 342 | |
| 9782 | 원격클린 나는거+1 | 01-22 | 284 | |
| 9781 | ESP월 소수정+2 | 01-21 | 315 | |
| 9780 | 01-21 | 147 | ||
| 9779 | 01-19 | 242 | ||
| 9778 | 01-17 | 349 | ||
| 9777 | 01-15 | 278 | ||
| 9776 | 01-14 | 1166 |
댓글2
64비트에 맞는 포인터랑 타입 수정 부터 하세요
function BodySetValue(Value: Single): Boolean;
var
TempValue: UInt32;
begin
try
TempValue := PUInt32(@Value)^;
TempValue := TempValue xor $3A;
TempValue := TempValue xor $B8;
WPM4Byte(BodyAlloc[2] + $660, TempValue);
Result := True;
except
Result := False;
end;
end;