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

Read image load config directly from memory #15

Closed
woodruffw opened this issue Sep 12, 2018 · 0 comments
Closed

Read image load config directly from memory #15

woodruffw opened this issue Sep 12, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@woodruffw
Copy link
Member

Right now we seek to and read from the right offset within the file HANDLE given to us by LOADED_IMAGE.hFile, but there's no need to do this when we already have the full file mapped into memory at LOADED_IMAGE.MappedAddress already.

SetFilePointer(loadedImage.hFile, (LONG) loadConfigOffset, NULL, FILE_BEGIN);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant