Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
* stable:
  (GH-828) Return OS bit width, not process
  • Loading branch information
ferventcoder committed Jul 24, 2016
2 parents 18c43a3 + 45ccd77 commit 5ee2dd0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ param(
Write-Debug "Running 'Get-OSArchitectureWidth'"

$bits = 64
if ([System.IntPtr]::Size -eq 4) {
if (([System.IntPtr]::Size -eq 4) -and (Test-Path env:\PROCESSOR_ARCHITEW6432)) {
$bits = 64
} elseif ([System.IntPtr]::Size -eq 4) {
$bits = 32
}

Expand Down

0 comments on commit 5ee2dd0

Please sign in to comment.