Changeset 1763 for trunk/gsinstaller


Ignore:
Timestamp:
2000-12-08T04:14:29+13:00 (23 years ago)
Author:
cs025
Message:

Fixed problem with detection of Windows32s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsPlatform.cpp

    r1543 r1763  
    77
    88gsPlatform::gsPlatform()
    9 {
    10   this->platformInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
    11   GetVersionEx(&this->platformInfo);
     9{   this->platformInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
     10  if (!GetVersionEx(&this->platformInfo))
     11  {
     12  }
    1213}
    1314
    1415bool gsPlatform::isWindows9x()
    1516{
    16   return (this->platformInfo.dwPlatformId & VER_PLATFORM_WIN32_WINDOWS);
     17  return (this->platformInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS);
    1718}
    1819
    1920bool gsPlatform::isWindowsNT()
    2021{
    21   return (this->platformInfo.dwPlatformId & VER_PLATFORM_WIN32_NT);
     22  return (this->platformInfo.dwPlatformId == VER_PLATFORM_WIN32_NT);
    2223}
    2324
    2425bool gsPlatform::isWindows32s()
    2526{
    26   return (this->platformInfo.dwPlatformId & VER_PLATFORM_WIN32s);
     27  return (this->platformInfo.dwPlatformId == VER_PLATFORM_WIN32s);
    2728}
    2829
    2930bool gsPlatform::isOldWindows32s()
    30 {   
     31{
    3132  if (this->platformInfo.dwMajorVersion == 0 ||
    3233      this->platformInfo.dwMinorVersion < 30)
Note: See TracChangeset for help on using the changeset viewer.