-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fixed issue 863. Uses the MEMORY_BASIC_INFORMATION64 struct and retur… #864
Fixed issue 863. Uses the MEMORY_BASIC_INFORMATION64 struct and retur… #864
Conversation
…ns a 64bit baseAddress when compiled for 64 bit windows
MEMORY_BASIC_INFORMATION64 basicInfo; | ||
#else | ||
MEMORY_BASIC_INFORMATION basicInfo; | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please indent the ifdef
s properly (no spaces) and also the variable names should be indented like the others below
I added some comments inline. Other than that, can you please also update HISTORY and CREDITS files? Thanks a lot. |
I made your suggested changes. Let me know if I missed anything. Thanks! |
"(kssI)", | ||
(unsigned long)baseAddress, | ||
#endif | ||
(unsigned long long)baseAddress, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks wrong. Shouldn't this line be inside the ifdef statement?
You should do:
+#ifdef _WIN64
+ py_tuple = Py_BuildValue(
+ "(KssI)",
+ (unsigned long long)baseAddress,
+#else
+ py_tuple = Py_BuildValue(
+ "(kssI)",
+ (unsigned long)baseAddress,
+#endif
...
You're right on both. Sorry, I'm pretty new to pull requests here. I'll try to just delete this request and make a new one off of master. |
…ns a 64bit baseAddress when compiled for 64 bit windows