VirtualBox

Changeset 84347 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 18, 2020 7:02:01 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138029
Message:

Add/WebService: VC++ 19.2 build adjustment. bugref:8489

Location:
trunk/src/VBox/Main/webservice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r82968 r84347  
    23272327{
    23282328    RT_NOREF(resp);
    2329     HRESULT rc = S_OK;
     2329    HRESULT rc;
    23302330    WEBDEBUG(("-- entering %s\n", __FUNCTION__));
    23312331
    2332     do
    23332332    {
    23342333        // findRefFromId and the delete call below require the lock
     
    23362335
    23372336        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
    23402348            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    }
    23512350
    23522351    WEBDEBUG(("-- leaving %s, rc: %#lx\n", __FUNCTION__, rc));
  • trunk/src/VBox/Main/webservice/websrv-cpp.xsl

    r83794 r84347  
    528528      <xsl:text>        }&#10;</xsl:text>
    529529      <xsl:value-of select="concat('        const WSDLT_ID &amp;idThis = ', $structprefix, $G_nameObjectRefEncoded, ';&#10;')" />
    530       <xsl:value-of select="'        if ((rc = findComPtrFromId(soap, idThis, pObj, false)))&#10;'" />
     530      <xsl:value-of select="'        if ((rc = findComPtrFromId(soap, idThis, pObj, false)) != S_OK)&#10;'" />
    531531      <xsl:text>            break;&#10;</xsl:text>
    532532    </xsl:when>
     
    580580          <xsl:value-of select="'    ComPtr&lt;IUnknown&gt; tmpObject;'" />
    581581          <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)')" />
    583583          <xsl:call-template name="emitNewlineIndent8" />
    584584          <xsl:text>        break;</xsl:text>
     
    589589          <xsl:value-of select="concat('    ComPtr&lt;', $type, '&gt; tmpObject;')" />
    590590          <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)')" />
    592592          <xsl:call-template name="emitNewlineIndent8" />
    593593          <xsl:text>        break;</xsl:text>
     
    647647          <xsl:value-of select="concat(' comcall_', $name, ';')" />
    648648          <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)')" />
    650650          <xsl:call-template name="emitNewlineIndent8" />
    651651          <xsl:text>    break</xsl:text>
     
    665665              <xsl:value-of select="concat(' comcall_', $name, ';')" />
    666666              <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)')" />
    668668              <xsl:call-template name="emitNewlineIndent8" />
    669669              <xsl:text>    break</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette