Changeset 50174 in vbox for trunk/src/VBox/Main/src-server/generic
- Timestamp:
- Jan 23, 2014 9:22:22 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp
r49871 r50174 180 180 181 181 182 int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pV Box,182 int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVirtualBox, 183 183 IHostNetworkInterface **aHostNetworkInterface, 184 184 IProgress **aProgress, … … 191 191 192 192 ComPtr<IHost> host; 193 HRESULT hrc = pV Box->COMGETTER(Host)(host.asOutParam());193 HRESULT hrc = pVirtualBox->COMGETTER(Host)(host.asOutParam()); 194 194 if (SUCCEEDED(hrc)) 195 195 { 196 hrc = progress->init(pV Box, host,196 hrc = progress->init(pVirtualBox, host, 197 197 Bstr("Creating host only network interface").raw(), 198 198 FALSE /* aCancelable */); … … 266 266 iface.createObject(); 267 267 iface->init(IfName, HostNetworkInterfaceType_HostOnly, pInfo); 268 iface->i_setVirtualBox(pV Box);268 iface->i_setVirtualBox(pVirtualBox); 269 269 iface.queryInterfaceTo(aHostNetworkInterface); 270 270 } … … 301 301 302 302 #else 303 NOREF(pV Box);303 NOREF(pVirtualBox); 304 304 NOREF(aHostNetworkInterface); 305 305 NOREF(aProgress); … … 309 309 } 310 310 311 int NetIfRemoveHostOnlyNetworkInterface(VirtualBox *pV Box, IN_GUID aId,311 int NetIfRemoveHostOnlyNetworkInterface(VirtualBox *pVirtualBox, IN_GUID aId, 312 312 IProgress **aProgress) 313 313 { … … 318 318 ComPtr<IHost> host; 319 319 int rc = VINF_SUCCESS; 320 HRESULT hr = pV Box->COMGETTER(Host)(host.asOutParam());320 HRESULT hr = pVirtualBox->COMGETTER(Host)(host.asOutParam()); 321 321 if (SUCCEEDED(hr)) 322 322 { … … 329 329 return VERR_INTERNAL_ERROR; 330 330 331 rc = progress->init(pV Box, host,331 rc = progress->init(pVirtualBox, host, 332 332 Bstr("Removing host network interface").raw(), 333 333 FALSE /* aCancelable */); … … 352 352 return rc; 353 353 #else 354 NOREF(pV Box);354 NOREF(pVirtualBox); 355 355 NOREF(aId); 356 356 NOREF(aProgress);
Note:
See TracChangeset
for help on using the changeset viewer.