Changeset 40866 in vbox
- Timestamp:
- Apr 11, 2012 9:36:34 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp
r40863 r40866 45 45 46 46 bool fLogEnabled; 47 bool fDetachOnDisconnect; 47 48 48 49 uint32_t u32GuestPropHandle; /* The client identifier of the guest property system. */ … … 1145 1146 LALOG(("VBoxTray: VBoxLAInit\n")); 1146 1147 1148 dwValue = 0; 1149 if ( laGetRegistryDWORD(L"SOFTWARE\\Oracle\\VirtualBox Guest Additions", L"VBoxTrayLA", &dwValue) 1150 && (dwValue & 0x02) != 0) 1151 { 1152 gCtx.fDetachOnDisconnect = true; 1153 } 1154 else 1155 { 1156 gCtx.fDetachOnDisconnect = false; 1157 } 1158 1159 LALOG(("VBoxTray: VBoxLAInit: VBoxTrayLA %x\n", dwValue)); 1160 1147 1161 int rc = VbglR3GuestPropConnect(&gCtx.u32GuestPropHandle); 1148 1162 if (RT_FAILURE(rc)) … … 1273 1287 { 1274 1288 /* If the client has been disconnected, do the detach actions. */ 1275 if (fClientIdChanged) 1289 if ( pCtx->fDetachOnDisconnect 1290 && fClientIdChanged) 1276 1291 { 1277 1292 LALOG(("LA: client disconnected\n"));
Note:
See TracChangeset
for help on using the changeset viewer.