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

SymGetLineFromAddr64 fails at runtime when compiling for 32bit #170

Closed
0blu opened this issue Sep 8, 2024 · 2 comments
Closed

SymGetLineFromAddr64 fails at runtime when compiling for 32bit #170

0blu opened this issue Sep 8, 2024 · 2 comments

Comments

@0blu
Copy link
Contributor

0blu commented Sep 8, 2024

When compiling for 32bit these two lines will fail at runtime:

IMAGEHLP_LINE64 line;
bool got_line = SymGetLineFromAddr64(proc, addr, &displacement.b, &line);

There is a macro in DbgHelp.h (already included), which automaticity choses the right type.
So they just need to be replace with:

IMAGEHLP_LINE line;
bool got_line = SymGetLineFromAddr(proc, addr, &displacement.b, &line);
@jeremy-rifkin
Copy link
Owner

Thanks for pointing this out, sounds reasonable to me. It's unfortunate the docs don't make this more clear :)

@jeremy-rifkin
Copy link
Owner

Should be resolved by 142e0b9

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

2 participants