Added OS Platform (cpu architecture) detection support to windows systems

This commit is contained in:
Zach Mullen 2009-10-09 11:10:06 -04:00
parent 89954fe9a2
commit 8fe2738096
1 changed files with 6 additions and 0 deletions

View File

@ -3358,6 +3358,12 @@ bool SystemInformationImplementation::QueryOSInformation()
WSACleanup( ); WSACleanup( );
} }
this->Hostname = name; this->Hostname = name;
const char* arch = getenv("PROCESSOR_ARCHITECTURE");
if(arch)
{
this->OSPlatform = arch;
}
#else #else