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

(GH-828) Return OS bit width, not process #831

Closed
wants to merge 1 commit into from

Conversation

dtgm
Copy link
Contributor

@dtgm dtgm commented Jun 24, 2016

(GH-828) Return OS bit width, not process

Get-OSArchitectureWidth returns the current process bit-width regardless of
OS arch. So in 32-bit powershell running on 64-bit windows, it returns 32
because [System.IntPtr]::Size returns 4 in 32-bit process regardless of
OS architecture (32 or 64). This fix returns actual OS bit width.

Closes #828

Get-OSArchitectureWidth returns the current process bit-width regardless of
OS arch. So in 32-bit powershell running on 64-bit windows, it returns 32
because [System.IntPtr]::Size returns 4 in 32-bit process regardless of
OS architecture (32 or 64). This fix returns actual OS bit width.
@ferventcoder
Copy link
Member

Merged into stable at 45ccd77

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.

Get-OSArchitectureWidth doesn't do what it says it does
2 participants