Changeset 84347 in vbox for trunk/src/VBox/Main
- Timestamp:
- May 18, 2020 7:02:01 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138029
- Location:
- trunk/src/VBox/Main/webservice
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/vboxweb.cpp
r82968 r84347 2327 2327 { 2328 2328 RT_NOREF(resp); 2329 HRESULT rc = S_OK;2329 HRESULT rc; 2330 2330 WEBDEBUG(("-- entering %s\n", __FUNCTION__)); 2331 2331 2332 do2333 2332 { 2334 2333 // findRefFromId and the delete call below require the lock … … 2336 2335 2337 2336 ManagedObjectRef *pRef; 2338 if ((rc = ManagedObjectRef::findRefFromId(req->_USCOREthis, &pRef, false))) 2339 { 2337 rc = ManagedObjectRef::findRefFromId(req->_USCOREthis, &pRef, false); 2338 if (rc == S_OK) 2339 { 2340 WEBDEBUG((" found reference; deleting!\n")); 2341 // this removes the object from all stacks; since 2342 // there's a ComPtr<> hidden inside the reference, 2343 // this should also invoke Release() on the COM 2344 // object 2345 delete pRef; 2346 } 2347 else 2340 2348 RaiseSoapInvalidObjectFault(soap, req->_USCOREthis); 2341 break; 2342 } 2343 2344 WEBDEBUG((" found reference; deleting!\n")); 2345 // this removes the object from all stacks; since 2346 // there's a ComPtr<> hidden inside the reference, 2347 // this should also invoke Release() on the COM 2348 // object 2349 delete pRef; 2350 } while (0); 2349 } 2351 2350 2352 2351 WEBDEBUG(("-- leaving %s, rc: %#lx\n", __FUNCTION__, rc)); -
trunk/src/VBox/Main/webservice/websrv-cpp.xsl
r83794 r84347 528 528 <xsl:text> } </xsl:text> 529 529 <xsl:value-of select="concat(' const WSDLT_ID &idThis = ', $structprefix, $G_nameObjectRefEncoded, '; ')" /> 530 <xsl:value-of select="' if ((rc = findComPtrFromId(soap, idThis, pObj, false)) ) '" />530 <xsl:value-of select="' if ((rc = findComPtrFromId(soap, idThis, pObj, false)) != S_OK) '" /> 531 531 <xsl:text> break; </xsl:text> 532 532 </xsl:when> … … 580 580 <xsl:value-of select="' ComPtr<IUnknown> tmpObject;'" /> 581 581 <xsl:call-template name="emitNewlineIndent8" /> 582 <xsl:value-of select="concat(' if ((rc = findComPtrFromId(soap, ', $structprefix, $name, '[i], tmpObject, true)) )')" />582 <xsl:value-of select="concat(' if ((rc = findComPtrFromId(soap, ', $structprefix, $name, '[i], tmpObject, true)) != S_OK)')" /> 583 583 <xsl:call-template name="emitNewlineIndent8" /> 584 584 <xsl:text> break;</xsl:text> … … 589 589 <xsl:value-of select="concat(' ComPtr<', $type, '> tmpObject;')" /> 590 590 <xsl:call-template name="emitNewlineIndent8" /> 591 <xsl:value-of select="concat(' if ((rc = findComPtrFromId(soap, ', $structprefix, $name, '[i], tmpObject, true)) )')" />591 <xsl:value-of select="concat(' if ((rc = findComPtrFromId(soap, ', $structprefix, $name, '[i], tmpObject, true)) != S_OK)')" /> 592 592 <xsl:call-template name="emitNewlineIndent8" /> 593 593 <xsl:text> break;</xsl:text> … … 647 647 <xsl:value-of select="concat(' comcall_', $name, ';')" /> 648 648 <xsl:call-template name="emitNewlineIndent8" /> 649 <xsl:value-of select="concat('if ((rc = findComPtrFromId(soap, ', $structprefix, $name, ', comcall_', $name,', true)) )')" />649 <xsl:value-of select="concat('if ((rc = findComPtrFromId(soap, ', $structprefix, $name, ', comcall_', $name,', true)) != S_OK)')" /> 650 650 <xsl:call-template name="emitNewlineIndent8" /> 651 651 <xsl:text> break</xsl:text> … … 665 665 <xsl:value-of select="concat(' comcall_', $name, ';')" /> 666 666 <xsl:call-template name="emitNewlineIndent8" /> 667 <xsl:value-of select="concat('if ((rc = findComPtrFromId(soap, ', $structprefix, $name, ', comcall_', $name,', true)) )')" />667 <xsl:value-of select="concat('if ((rc = findComPtrFromId(soap, ', $structprefix, $name, ', comcall_', $name,', true)) != S_OK)')" /> 668 668 <xsl:call-template name="emitNewlineIndent8" /> 669 669 <xsl:text> break</xsl:text>
Note:
See TracChangeset
for help on using the changeset viewer.