Changeset 72404 in vbox for trunk/src/VBox
- Timestamp:
- Jun 1, 2018 12:29:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostDnsService.cpp
r72396 r72404 245 245 void HostDnsMonitor::pollGlobalExtraData() 246 246 { 247 VirtualBox *virtualbox = m->virtualbox; 248 if (RT_UNLIKELY(virtualbox == NULL)) 249 return; 250 247 251 uint64_t uNow = RTTimeNanoTS(); 248 if ( m->virtualbox && (uNow - m->uLastExtraDataPoll >= RT_NS_30SEC || m->uLastExtraDataPoll == 0))252 if (virtualbox && (uNow - m->uLastExtraDataPoll >= RT_NS_30SEC || m->uLastExtraDataPoll == 0)) 249 253 { 250 254 m->uLastExtraDataPoll = uNow; … … 255 259 const com::Bstr bstrHostDNSOrderIgnoreKey("VBoxInternal2/HostDNSOrderIgnore"); 256 260 com::Bstr bstrHostDNSOrderIgnore; 257 m->virtualbox->GetExtraData(bstrHostDNSOrderIgnoreKey.raw(),258 261 virtualbox->GetExtraData(bstrHostDNSOrderIgnoreKey.raw(), 262 bstrHostDNSOrderIgnore.asOutParam()); 259 263 uint32_t fDNSOrderIgnore = 0; 260 264 if (bstrHostDNSOrderIgnore.isNotEmpty()) … … 278 282 const com::Bstr bstrHostDNSSuffixesIgnoreKey("VBoxInternal2/HostDNSSuffixesIgnore"); 279 283 com::Bstr bstrHostDNSSuffixesIgnore; 280 m->virtualbox->GetExtraData(bstrHostDNSSuffixesIgnoreKey.raw(),281 284 virtualbox->GetExtraData(bstrHostDNSSuffixesIgnoreKey.raw(), 285 bstrHostDNSSuffixesIgnore.asOutParam()); 282 286 uint32_t fDNSSuffixesIgnore = 0; 283 287 if (bstrHostDNSSuffixesIgnore.isNotEmpty())
Note:
See TracChangeset
for help on using the changeset viewer.