VirtualBox

Changeset 40891 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Apr 12, 2012 11:36:42 AM (13 years ago)
Author:
vboxsync
Message:

VBoxTray: updates for guest property monitor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp

    r40866 r40891  
    11461146    LALOG(("VBoxTray: VBoxLAInit\n"));
    11471147
    1148     dwValue = 0;
     1148    /* DetachOnDisconnect is enabled by default. */
     1149    dwValue = 0x02;
    11491150    if (   laGetRegistryDWORD(L"SOFTWARE\\Oracle\\VirtualBox Guest Additions", L"VBoxTrayLA", &dwValue)
    1150         && (dwValue & 0x02) != 0)
     1151        && (dwValue & 0x02) == 0)
     1152    {
     1153         gCtx.fDetachOnDisconnect = false;
     1154    }
     1155    else
    11511156    {
    11521157         gCtx.fDetachOnDisconnect = true;
    11531158    }
    1154     else
    1155     {
    1156          gCtx.fDetachOnDisconnect = false;
    1157     }
    1158 
    1159     LALOG(("VBoxTray: VBoxLAInit: VBoxTrayLA %x\n", dwValue));
     1159
     1160    LALOGFORCE(("VBoxTray: VBoxLAInit: dod %d, VBoxTrayLA %x\n", gCtx.fDetachOnDisconnect, dwValue));
    11601161
    11611162    int rc = VbglR3GuestPropConnect(&gCtx.u32GuestPropHandle);
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