VirtualBox

Changeset 85250 in vbox


Ignore:
Timestamp:
Jul 11, 2020 11:10:47 PM (4 years ago)
Author:
vboxsync
Message:

Main/ProgressProxyImpl.cpp: Signed/unsigned conversion issues. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ProgressProxyImpl.cpp

    r82968 r85250  
    338338            {
    339339                /* Check the result. */
    340                 LONG hrcResult;
    341                 hrc = pOtherProgress->COMGETTER(ResultCode)(&hrcResult);
     340                LONG lResult;
     341                hrc = pOtherProgress->COMGETTER(ResultCode)(&lResult);
    342342                if (FAILED(hrc))
    343                     hrcResult = hrc;
    344                 if (SUCCEEDED((HRESULT)hrcResult))
     343                    lResult = (LONG)hrc;
     344                if (SUCCEEDED((HRESULT)lResult))
    345345                    LogFlowThisFunc(("Succeeded\n"));
    346346                else
     
    367367
    368368                        Utf8Str strText(bstrText);
    369                         LogFlowThisFunc(("Got ErrorInfo(%s); hrcResult=%Rhrc\n", strText.c_str(), hrcResult));
    370                         Progress::i_notifyComplete((HRESULT)hrcResult,
     369                        LogFlowThisFunc(("Got ErrorInfo(%s); hrcResult=%Rhrc\n", strText.c_str(), (HRESULT)lResult));
     370                        Progress::i_notifyComplete((HRESULT)lResult,
    371371                                                   Guid(bstrIID).ref(),
    372372                                                   Utf8Str(bstrComponent).c_str(),
     
    375375                    else
    376376                    {
    377                         LogFlowThisFunc(("ErrorInfo failed with hrc=%Rhrc; hrcResult=%Rhrc\n", hrc, hrcResult));
    378                         Progress::i_notifyComplete((HRESULT)hrcResult,
     377                        LogFlowThisFunc(("ErrorInfo failed with hrc=%Rhrc; hrcResult=%Rhrc\n", hrc, (HRESULT)lResult));
     378                        Progress::i_notifyComplete((HRESULT)lResult,
    379379                                                   COM_IIDOF(IProgress),
    380380                                                   "ProgressProxy",
Note: See TracChangeset for help on using the changeset viewer.

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