Changeset 20267 in vbox
- Timestamp:
- Jun 4, 2009 11:27:27 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 48138
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/ErrorInfo.h
r17911 r20267 284 284 285 285 HRESULT mResultCode; 286 Guid mInterfaceID;287 Bstr mComponent;288 Bstr mText;286 Guid mInterfaceID; 287 Bstr mComponent; 288 Bstr mText; 289 289 290 290 cppx::auto_copy_ptr <ErrorInfo> mNext; -
trunk/include/VBox/com/VirtualBoxErrorInfo.h
r15051 r20267 85 85 86 86 // IVirtualBoxErrorInfo properties 87 STDMETHOD(COMGETTER(ResultCode)) ( HRESULT*aResultCode);87 STDMETHOD(COMGETTER(ResultCode)) (LONG *aResultCode); 88 88 STDMETHOD(COMGETTER(InterfaceID)) (OUT_GUID aIID); 89 89 STDMETHOD(COMGETTER(Component)) (BSTR *aComponent); … … 105 105 HRESULT init (nsIException *aInfo); 106 106 107 NS_DECL_NSIEXCEPTION 108 107 NS_DECL_NSIEXCEPTION 109 108 #endif 110 109 -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r19817 r20267 4099 4099 * What's the result of the operation? 4100 4100 */ 4101 HRESULTlrc;4101 LONG lrc; 4102 4102 rc = gProgress->COMGETTER(ResultCode)(&lrc); 4103 4103 if (FAILED(rc)) -
trunk/src/VBox/Main/VirtualBoxErrorInfoImpl.cpp
r17911 r20267 42 42 //////////////////////////////////////////////////////////////////////////////// 43 43 44 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(ResultCode) ( HRESULT*aResultCode)44 STDMETHODIMP VirtualBoxErrorInfo::COMGETTER(ResultCode) (LONG *aResultCode) 45 45 { 46 46 CheckComArgOutPointerValid(aResultCode); … … 178 178 NS_IMETHODIMP VirtualBoxErrorInfo::GetResult (nsresult *aResult) 179 179 { 180 return COMGETTER(ResultCode) (aResult); 180 if (!aResult) 181 return NS_ERROR_INVALID_POINTER; 182 183 PRInt32 lrc; 184 nsresult rc = COMGETTER(ResultCode) (&lrc); 185 if (SUCCEEDED(rc)) 186 *aResult = lrc; 187 return rc; 181 188 } 182 189 -
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 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r20260 r20267 932 932 </desc> 933 933 934 <attribute name="resultCode" type=" result" readonly="yes">934 <attribute name="resultCode" type="long" readonly="yes"> 935 935 <desc> 936 936 Result code of the error. … … 940 940 likely return E_NOINTERFACE upon unsuccessful component 941 941 instantiation attempt, but not the value the component factory 942 returned. 942 returned. Value is typed 'long', not 'result', 943 to make interface usable from scripting languages. 943 944 <note> 944 945 In MS COM, there is no equivalent. -
trunk/src/VBox/Main/include/VirtualBoxErrorInfoImpl.h
r17911 r20267 74 74 75 75 // IVirtualBoxErrorInfo properties 76 STDMETHOD(COMGETTER(ResultCode)) ( HRESULT*aResultCode);76 STDMETHOD(COMGETTER(ResultCode)) (LONG *aResultCode); 77 77 STDMETHOD(COMGETTER(InterfaceID)) (OUT_GUID aIID); 78 78 STDMETHOD(COMGETTER(Component)) (BSTR *aComponent); -
trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp
r20220 r20267 605 605 /* got extended error info */ 606 606 printf ("Extended error info (IVirtualBoxErrorInfo):\n"); 607 nsresultresultCode = NS_OK;607 PRInt32 resultCode = NS_OK; 608 608 info->GetResultCode (&resultCode); 609 609 printf (" resultCode=%08X\n", resultCode); -
trunk/src/VBox/Main/webservice/split-soapC.sed
-
Property svn:eol-style
changed from
native
toLF
-
Property svn:eol-style
changed from
Note:
See TracChangeset
for help on using the changeset viewer.