VirtualBox

Changeset 44911 in vbox for trunk


Ignore:
Timestamp:
Mar 4, 2013 2:37:13 PM (12 years ago)
Author:
vboxsync
Message:

Additions/VBoxService: don't crash if dbus is not available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r44595 r44911  
    668668        if (s_iBitchedAboutDBus++ < 3)
    669669            VBoxServiceError("Unable to connect to system D-Bus (%d/3): %s\n", s_iBitchedAboutDBus,
    670                              dbus_error_is_set(&dbErr) ? dbErr.message : "D-Bus not installed\n");
    671     }
    672 
    673     if (dbus_error_is_set(&dbErr))
     670                             pConnection && dbus_error_is_set(&dbErr) ? dbErr.message : "D-Bus not installed\n");
     671    }
     672
     673    if (   pConnection
     674        && dbus_error_is_set(&dbErr))
    674675        dbus_error_free(&dbErr);
    675676# endif /* RT_OS_LINUX */
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