VirtualBox

Changeset 11356 in vbox for trunk/src


Ignore:
Timestamp:
Aug 12, 2008 1:05:33 PM (16 years ago)
Author:
vboxsync
Message:

RTSystemQueryOSInfo/Win: Don't include "Service Pack" in the output, just the numbers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/RTSystemQueryOSInfo-win.cpp

    r11352 r11356  
    397397            {
    398398                if (OSInfoEx.wServicePackMinor)
    399                     RTStrPrintf(szTmp, sizeof(szTmp), "Service Pack %u.%u", (unsigned)OSInfoEx.wServicePackMajor, (unsigned)OSInfoEx.wServicePackMinor);
     399                    RTStrPrintf(szTmp, sizeof(szTmp), "%u.%u", (unsigned)OSInfoEx.wServicePackMajor, (unsigned)OSInfoEx.wServicePackMinor);
    400400                else
    401                     RTStrPrintf(szTmp, sizeof(szTmp), "Service Pack %u", (unsigned)OSInfoEx.wServicePackMajor);
     401                    RTStrPrintf(szTmp, sizeof(szTmp), "%u", (unsigned)OSInfoEx.wServicePackMajor);
    402402            }
    403403            else if (OSInfoEx.szCSDVersion[0])
     
    413413                switch (enmVer)
    414414                {
    415                     case kRTWinOSType_95SP1:    strcpy(szTmp, "Service Pack 1"); break;
    416                     case kRTWinOSType_98SP1:    strcpy(szTmp, "Service Pack 1"); break;
     415                    case kRTWinOSType_95SP1:    strcpy(szTmp, "1"); break;
     416                    case kRTWinOSType_98SP1:    strcpy(szTmp, "1"); break;
    417417                    default:
    418418                        break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette