Changeset 40188 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Feb 21, 2012 8:32:47 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r40078 r40188 1729 1729 ComPtr<INetworkAdapter> networkAdapter; 1730 1730 hrc = pMachine->GetNetworkAdapter(ulInstance, networkAdapter.asOutParam()); H(); 1731 BOOL fEnabled = FALSE;1732 hrc = networkAdapter->COMGETTER(Enabled)(&fEnabled );H();1733 if (!fEnabled )1731 BOOL fEnabledNetAdapter = FALSE; 1732 hrc = networkAdapter->COMGETTER(Enabled)(&fEnabledNetAdapter); H(); 1733 if (!fEnabledNetAdapter) 1734 1734 continue; 1735 1735 … … 1944 1944 ComPtr<ISerialPort> serialPort; 1945 1945 hrc = pMachine->GetSerialPort(ulInstance, serialPort.asOutParam()); H(); 1946 BOOL fEnabled = FALSE;1946 BOOL fEnabledSerPort = FALSE; 1947 1947 if (serialPort) 1948 hrc = serialPort->COMGETTER(Enabled)(&fEnabled );H();1949 if (!fEnabled )1948 hrc = serialPort->COMGETTER(Enabled)(&fEnabledSerPort); H(); 1949 if (!fEnabledSerPort) 1950 1950 continue; 1951 1951 … … 2005 2005 ComPtr<IParallelPort> parallelPort; 2006 2006 hrc = pMachine->GetParallelPort(ulInstance, parallelPort.asOutParam()); H(); 2007 BOOL fEnabled = FALSE;2007 BOOL fEnabledParPort = FALSE; 2008 2008 if (parallelPort) 2009 2009 { 2010 hrc = parallelPort->COMGETTER(Enabled)(&fEnabled );H();2011 } 2012 if (!fEnabled )2010 hrc = parallelPort->COMGETTER(Enabled)(&fEnabledParPort); H(); 2011 } 2012 if (!fEnabledParPort) 2013 2013 continue; 2014 2014 … … 2501 2501 */ 2502 2502 { 2503 BOOL fEnabled = false; 2504 hrc = pMachine->COMGETTER(Accelerate3DEnabled)(&fEnabled); H(); 2505 2506 if (fEnabled) 2503 BOOL fEnabled3D = false; 2504 hrc = pMachine->COMGETTER(Accelerate3DEnabled)(&fEnabled3D); H(); 2505 2506 if (fEnabled3D) 2507 { 2508 BOOL fSupports3D = false; 2509 hrc = host->COMGETTER(Acceleration3DAvailable)(&fSupports3D); H(); 2510 if (!fSupports3D) 2511 { 2512 setVMRuntimeErrorCallbackF(pVM, this, 0, 2513 "Accel3DNotAvailable", 2514 N_("This VM was configured to use 3D support. However, the " 2515 "3D support of the host is not working properly. Therefore " 2516 "3D support for the guest has been disabled")); 2517 fEnabled3D = false; 2518 } 2519 } 2520 2521 if (fEnabled3D) 2507 2522 { 2508 2523 /* Load the service */ … … 4613 4628 { 4614 4629 /* there is a DHCP server available for this network */ 4615 BOOL fEnabled ;4616 hrc = dhcpServer->COMGETTER(Enabled)(&fEnabled );4630 BOOL fEnabledDhcp; 4631 hrc = dhcpServer->COMGETTER(Enabled)(&fEnabledDhcp); 4617 4632 if (FAILED(hrc)) 4618 4633 { … … 4621 4636 } 4622 4637 4623 if (fEnabled )4638 if (fEnabledDhcp) 4624 4639 hrc = dhcpServer->Start(networkName.raw(), 4625 4640 trunkName.raw(),
Note:
See TracChangeset
for help on using the changeset viewer.