Changeset 29953 in vbox
- Timestamp:
- Jun 1, 2010 3:03:06 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Main/SessionImpl.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SessionImpl.cpp
r29853 r29953 181 181 CHECK_OPEN(); 182 182 183 HRESULT rc = E_FAIL; 184 183 HRESULT rc; 185 184 if (mConsole) 186 185 rc = mConsole->machine().queryInterfaceTo(aMachine); 187 186 else 188 187 rc = mRemoteMachine.queryInterfaceTo(aMachine); 189 ComAssertComRC(rc); 188 if (FAILED(rc)) 189 { 190 /** @todo VBox 3.3: replace E_FAIL with rc here. */ 191 if (mConsole) 192 setError(E_FAIL, tr("Failed to query the session machine (%Rhrc)"), rc); 193 else if (FAILED_DEAD_INTERFACE(rc)) 194 setError(E_FAIL, tr("Peer process crashed")); 195 else 196 setError(E_FAIL, tr("Failed to query the remote session machine (%Rhrc)"), rc); 197 } 190 198 191 199 return rc; … … 203 211 CHECK_OPEN(); 204 212 205 HRESULT rc = E_FAIL; 206 213 HRESULT rc; 207 214 if (mConsole) 208 215 rc = mConsole.queryInterfaceTo(aConsole); 209 216 else 210 217 rc = mRemoteConsole.queryInterfaceTo(aConsole); 211 ComAssertComRC(rc); 218 if (FAILED(rc)) 219 { 220 /** @todo VBox 3.3: replace E_FAIL with rc here. */ 221 if (mConsole) 222 setError(E_FAIL, tr("Failed to query the console (%Rhrc)"), rc); 223 else if (FAILED_DEAD_INTERFACE(rc)) 224 setError(E_FAIL, tr("Peer process crashed")); 225 else 226 setError(E_FAIL, tr("Failed to query the remote console (%Rhrc)"), rc); 227 } 212 228 213 229 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.

