Bug 5483 - Environment.Is64BitOperatingSystem returns a wrong value
Summary: Environment.Is64BitOperatingSystem returns a wrong value
Status: RESOLVED DUPLICATE of bug 37414
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib (show other bugs)
Version: 2.10.x
Hardware: All All
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-06-03 01:37 UTC by Matthew
Modified: 2016-01-12 16:11 UTC (History)
2 users (show)

See Also:
Is this bug a regression?: ---
Last known good build:


Description Matthew 2012-06-03 01:37:47 UTC
Based on the mono mscorlib.dll source code, Environment.Is64BitOperatingSystem returns Environment.Is64BitProcess, which is wrong.
If you are running in WOW64 on windows, or the equivalent on linux/mac it should return true, not false.

What it should do, is if it is a x64 process then return true. If it is a x32 process, detect if it is a WOW64 process and return true if it is.
Comment 1 Alexander Köplinger [MSFT] 2016-01-12 16:11:13 UTC

*** This bug has been marked as a duplicate of bug 37414 ***

Note You need to log in before you can comment on or make changes to this bug.