Changeset 20267 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Jun 4, 2009 11:27:27 AM (16 years ago)
- Location:
- trunk/src/VBox/Main/glue
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/ErrorInfo.cpp
r16555 r20267 180 180 bool gotSomething = false; 181 181 bool gotAll = true; 182 183 rc = info->COMGETTER(ResultCode) (&mResultCode); 182 LONG lrc; 183 184 rc = info->COMGETTER(ResultCode) (&lrc); mResultCode = lrc; 184 185 gotSomething |= SUCCEEDED (rc); 185 186 gotAll &= SUCCEEDED (rc); -
trunk/src/VBox/Main/glue/SupportErrorInfo.cpp
r13580 r20267 253 253 254 254 /* we want to return the head's result code */ 255 rc = info->COMGETTER(ResultCode) (&aResultCode); 255 PRInt32 lrc; 256 rc = info->COMGETTER(ResultCode) (&lrc); aResultCode = lrc; 256 257 CheckComRCBreakRC (rc); 257 258 } -
trunk/src/VBox/Main/glue/VirtualBoxErrorInfo.cpp
r15051 r20267 60 60 //////////////////////////////////////////////////////////////////////////////// 61 61 62 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(ResultCode) ( HRESULT*aResultCode)62 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(ResultCode) (LONG *aResultCode) 63 63 { 64 64 if (!aResultCode) … … 202 202 NS_IMETHODIMP VirtualBoxErrorInfo::GetResult (nsresult *aResult) 203 203 { 204 return COMGETTER(ResultCode) (aResult); 204 if (!aResult) 205 return NS_ERROR_INVALID_POINTER; 206 207 PRInt32 lrc; 208 nsresult rc = COMGETTER(ResultCode) (&lrc); 209 if (SUCCEEDED(rc)) 210 *aResult = lrc; 211 return rc; 205 212 } 206 213
Note:
See TracChangeset
for help on using the changeset viewer.