Changeset 26617 in vbox for trunk/src/VBox
- Timestamp:
- Feb 17, 2010 3:56:50 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57814
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevFwCommon.cpp
r26609 r26617 59 59 static const char *s_szDefDmiBIOSReleaseDate = "12/01/2006"; 60 60 static const char *s_szDefDmiSystemVendor = "innotek GmbH"; 61 static char s_szDefDmiSystemProduct[13]= "VirtualBox";62 static char s_szDefDmiSystemVersion[4]= "1.2";61 static const char *s_szDefDmiSystemProduct = "VirtualBox"; 62 static const char *s_szDefDmiSystemVersion = "1.2"; 63 63 static const char *s_szDefDmiSystemSerial = "0"; 64 64 static const char *s_szDefDmiSystemFamily = "Virtual Machine"; … … 67 67 static const char *s_szDefDmiChassisSerial = ""; 68 68 static const char *s_szDefDmiChassisAssetTag = ""; 69 70 static char g_szHostDmiSystemProduct[64]; 71 static char g_szHostDmiSystemVersion[64]; 69 72 70 73 … … 304 307 return (u8Sum == 0); 305 308 } 309 306 310 /* 307 311 * Macmini2,1 - matches Mac Mini … … 312 316 313 317 rc = RTSystemQueryDmiString(RTSYSDMISTR_PRODUCT_NAME, 314 s_szDefDmiSystemProduct, 315 sizeof s_szDefDmiSystemProduct); 316 if (RT_FAILURE(rc)) 318 g_szHostDmiSystemProduct, sizeof(g_szHostDmiSystemProduct)); 319 if (RT_SUCCESS(rc)) 317 320 { 318 // ignore rc? 321 s_szDefDmiSystemProduct = g_szHostDmiSystemProduct; 322 LogRel(("DMI: Using DmiSystemProduct from host: %s\n", g_szHostDmiSystemProduct)); 319 323 } 320 324 321 325 rc = RTSystemQueryDmiString(RTSYSDMISTR_PRODUCT_VERSION, 322 s_szDefDmiSystemVersion, 323 sizeof s_szDefDmiSystemVersion); 324 if (RT_FAILURE(rc)) 326 g_szHostDmiSystemVersion, sizeof(g_szHostDmiSystemVersion)); 327 if (RT_SUCCESS(rc)) 325 328 { 326 // ignore rc? 329 s_szDefDmiSystemVersion = g_szHostDmiSystemVersion; 330 LogRel(("DMI: Using DmiSystemVersion from host: %s\n", g_szHostDmiSystemVersion)); 327 331 } 328 332 }
Note:
See TracChangeset
for help on using the changeset viewer.