Changeset 103449 in vbox for trunk/src/VBox/Frontends/VBoxAutostart
- Timestamp:
- Feb 19, 2024 2:21:15 PM (12 months ago)
- Location:
- trunk/src/VBox/Frontends/VBoxAutostart
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostart-posix.cpp
r101227 r103449 226 226 227 227 /* complete the line. */ 228 LONG iRc = E_FAIL;228 LONG iRc = (LONG)E_FAIL; 229 229 hrc = progress->COMGETTER(ResultCode)(&iRc); 230 230 if (SUCCEEDED(hrc)) … … 239 239 RTStrmPrintf(g_pStdErr, "Progress state: %Rhrc\n", iRc); 240 240 } 241 hrc = iRc;241 hrc = (HRESULT)iRc; 242 242 } 243 243 else -
trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostartStart.cpp
r98103 r103449 105 105 for (size_t i = 0; i < machines.size(); ++i) 106 106 { 107 if (machines[i]) 107 ComPtr<IMachine> pMachine = machines[i]; 108 109 if (pMachine.isNotNull()) 108 110 { 109 111 Bstr strName; 110 CHECK_ERROR_BREAK( machines[i], COMGETTER(Name)(strName.asOutParam()));112 CHECK_ERROR_BREAK(pMachine, COMGETTER(Name)(strName.asOutParam())); 111 113 112 114 BOOL fAccessible; 113 CHECK_ERROR_BREAK( machines[i], COMGETTER(Accessible)(&fAccessible));115 CHECK_ERROR_BREAK(pMachine, COMGETTER(Accessible)(&fAccessible)); 114 116 if (!fAccessible) 115 117 { … … 121 123 122 124 BOOL fAutostart; 123 CHECK_ERROR_BREAK( machines[i], COMGETTER(AutostartEnabled)(&fAutostart));125 CHECK_ERROR_BREAK(pMachine, COMGETTER(AutostartEnabled)(&fAutostart)); 124 126 if (fAutostart) 125 127 { 126 CHECK_ERROR_BREAK( machines[i], COMGETTER(Id)(autostartVM.strId.asOutParam()));127 CHECK_ERROR_BREAK( machines[i], COMGETTER(AutostartDelay)(&autostartVM.uStartupDelay));128 CHECK_ERROR_BREAK(pMachine, COMGETTER(Id)(autostartVM.strId.asOutParam())); 129 CHECK_ERROR_BREAK(pMachine, COMGETTER(AutostartDelay)(&autostartVM.uStartupDelay)); 128 130 129 131 listVM.push_back(autostartVM); -
trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostartStop.cpp
r98103 r103449 135 135 for (size_t i = 0; i < machines.size(); ++i) 136 136 { 137 if (machines[i]) 137 ComPtr<IMachine> pMachine = machines[i]; 138 139 if (pMachine.isNotNull()) 138 140 { 139 141 Bstr strName; 140 CHECK_ERROR_BREAK( machines[i], COMGETTER(Name)(strName.asOutParam()));142 CHECK_ERROR_BREAK(pMachine, COMGETTER(Name)(strName.asOutParam())); 141 143 142 144 BOOL fAccessible; 143 CHECK_ERROR_BREAK( machines[i], COMGETTER(Accessible)(&fAccessible));145 CHECK_ERROR_BREAK(pMachine, COMGETTER(Accessible)(&fAccessible)); 144 146 if (!fAccessible) 145 147 { … … 151 153 152 154 AutostopType_T enmAutostopType; 153 CHECK_ERROR_BREAK( machines[i], COMGETTER(AutostopType)(&enmAutostopType));155 CHECK_ERROR_BREAK(pMachine, COMGETTER(AutostopType)(&enmAutostopType)); 154 156 if (enmAutostopType != AutostopType_Disabled) 155 157 { 156 CHECK_ERROR_BREAK( machines[i], COMGETTER(Id)(autostopVM.strId.asOutParam()));158 CHECK_ERROR_BREAK(pMachine, COMGETTER(Id)(autostopVM.strId.asOutParam())); 157 159 autostopVM.enmAutostopType = enmAutostopType; 158 160
Note:
See TracChangeset
for help on using the changeset viewer.