Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X64-Bug in TGpHugeFile #4

Open
GoogleCodeExporter opened this issue Apr 16, 2015 · 0 comments
Open

X64-Bug in TGpHugeFile #4

GoogleCodeExporter opened this issue Apr 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

In Unit GpHugeF.pas

the method OffsetPtr calculate a address in DWORD. This will fail in x64 and 
high pointers.

Suggestion is ...

function OffsetPtr(ptr: pointer; offset: DWORD): pointer;
begin
//BUG  Result := pointer(DWORD(ptr)+offset);
  Result := pointer(NativeUInt(ptr)+offset);
end; { OffsetPtr }

Original issue reported on code.google.com by [email protected] on 25 Mar 2015 at 8:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant