VirtualBox

Changeset 26807 in vbox for trunk/src


Ignore:
Timestamp:
Feb 25, 2010 4:44:20 PM (15 years ago)
Author:
vboxsync
Message:

Runtime/r3/darwin: RTSystemQueryDmiString cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/darwin/RTSystemQueryDmiString-darwin.cpp

    r26806 r26807  
    4747#define PROP_PRODUCT_NAME                    "product-name"
    4848#define PROP_PRODUCT_VERSION                 "version"
    49 #define PROP_SERIAL_NUMBER                   "IOPlatformSerialNumber"
    50 #define PROP_HARDWARE_UUID                   "IOPlatformUUID"
     49#define PROP_PRODUCT_SERIAL                  "IOPlatformSerialNumber"
     50#define PROP_PRODUCT_UUID                    "IOPlatformUUID"
    5151
    5252RTDECL(int) RTSystemQueryDmiString(RTSYSDMISTR enmString, char *pszBuf, size_t cbBuf)
     
    6060    switch (enmString)
    6161    {
    62         case RTSYSDMISTR_PRODUCT_NAME:    PropStringRef = CFStringCreateWithCString(kCFAllocatorDefault, PROP_PRODUCT_NAME, kCFStringEncodingASCII); break;
    63         case RTSYSDMISTR_PRODUCT_VERSION: PropStringRef = CFStringCreateWithCString(kCFAllocatorDefault, PROP_PRODUCT_VERSION, kCFStringEncodingASCII); break;
    64         case RTSYSDMISTR_PRODUCT_SERIAL:  PropStringRef = CFStringCreateWithCString(kCFAllocatorDefault, PROP_SERIAL_NUMBER, kCFStringEncodingASCII); break;
    65         case RTSYSDMISTR_PRODUCT_UUID:    PropStringRef = CFStringCreateWithCString(kCFAllocatorDefault, PROP_HARDWARE_UUID, kCFStringEncodingASCII); break;
     62        case RTSYSDMISTR_PRODUCT_NAME:    PropStringRef = CFSTR(PROP_PRODUCT_NAME);    break;
     63        case RTSYSDMISTR_PRODUCT_VERSION: PropStringRef = CFSTR(PROP_PRODUCT_VERSION); break;
     64        case RTSYSDMISTR_PRODUCT_SERIAL:  PropStringRef = CFSTR(PROP_PRODUCT_SERIAL); break;
     65        case RTSYSDMISTR_PRODUCT_UUID:    PropStringRef = CFSTR(PROP_PRODUCT_UUID);    break;
    6666        default:
    6767            return VERR_NOT_SUPPORTED;
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