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

Fixes for Process.name() and swap memory computation on i686-pc-windows-msvc #1189

Merged
merged 6 commits into from
Jan 5, 2024

Conversation

picrap
Copy link
Contributor

@picrap picrap commented Dec 30, 2023

Targetting i686-pc-windows, an initial try to fix #1188 which led to:
– A dead-end regarding this fix (because a 32-bit process can’t read 64-bits process memory… For obvious reasons 😅)
– A fix in Process.name() whose buffer length was too short
– A fix in swap memory computation, not using usize but extending to u64 (because even on 32-bit platforms, memory can be big 😉).

@GuillaumeGomez
Copy link
Owner

Please run cargo fmt. Otherwise changes look good to me, thanks! You'll have to wait for a few days for me to have access to a windows machine to ensure the changes are correct. :)

Because it works with 32 -> 32 bits (of course not for 32 -> 64 bits because of address space)
@GuillaumeGomez
Copy link
Owner

Tested locally and it looks all good on 64 bits. Thanks again for the fix!

@GuillaumeGomez GuillaumeGomez merged commit 6d78740 into GuillaumeGomez:master Jan 5, 2024
67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Process not filled on i686-pc-windows-msvc
2 participants