Index: /trunk/src/VBox/Runtime/r3/solaris/RTSystemQueryDmiString-solaris.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/solaris/RTSystemQueryDmiString-solaris.cpp	(revision 26664)
+++ /trunk/src/VBox/Runtime/r3/solaris/RTSystemQueryDmiString-solaris.cpp	(revision 26665)
@@ -41,4 +41,5 @@
 
 #include <smbios.h>
+#include <errno.h>
 
 
@@ -55,9 +56,10 @@
     if (pSMB)
     {
-        if (enmString == RTSYSDMISTR_PRODUCT_UUID)
+        smbios_system_t hSMBSys;
+        id_t hSMBId = smbios_info_system(pSMB, &hSMBSys);
+        if (hSMBId != SMB_ERR)
         {
-            smbios_system_t hSMBSys;
-            id_t hSMBId = smbios_info_system(pSMB, &hSMBSys);
-            if (hSMBId != SMB_ERR)
+            /* Don't need the common bits for the product UUID. */
+            if (enmString == RTSYSDMISTR_PRODUCT_UUID)
             {
                 static char const s_szHex[17] = "0123456789ABCDEF";
@@ -77,7 +79,5 @@
                 return rc;
             }
-        }
-        else
-        {
+
             smbios_info_t hSMBInfo;
             id_t hSMBInfoId = smbios_info_common(pSMB, hSMBId, &hSMBInfo);
