Changeset 40891 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Apr 12, 2012 11:36:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp
r40866 r40891 1146 1146 LALOG(("VBoxTray: VBoxLAInit\n")); 1147 1147 1148 dwValue = 0; 1148 /* DetachOnDisconnect is enabled by default. */ 1149 dwValue = 0x02; 1149 1150 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 1151 1156 { 1152 1157 gCtx.fDetachOnDisconnect = true; 1153 1158 } 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)); 1160 1161 1161 1162 int rc = VbglR3GuestPropConnect(&gCtx.u32GuestPropHandle);
Note:
See TracChangeset
for help on using the changeset viewer.