VirtualBox

Ignore:
Timestamp:
Sep 4, 2015 3:39:39 AM (9 years ago)
Author:
vboxsync
Message:

IPRT,UINetworkReply: Build & bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/http.cpp

    r57613 r57616  
    559559                rc = VERR_HTTP_PROXY_NOT_FOUND;
    560560                break;
     561            case CURLE_WRITE_ERROR:
     562                rc = RT_FAILURE_NP(pThis->rcOutput) ? pThis->rcOutput : VERR_WRITE_ERROR;
     563                break;
     564            //case CURLE_READ_ERROR
     565
    561566            default:
    562567                break;
     
    672677            pThis->Output.Mem.cb = cbNewSize;
    673678            pThis->Output.Mem.pb[cbNewSize] = '\0';
    674             return VINF_SUCCESS;
     679            return cbToAppend;
    675680        }
    676681
     
    693698            pThis->Output.Mem.pb = pbNew;
    694699            pThis->Output.Mem.cb = cbNewSize;
    695             return VINF_SUCCESS;
     700            return cbToAppend;
    696701        }
    697702
     
    699704    }
    700705    else
    701         pThis->rcOutput      = VERR_TOO_MUCH_DATA;
     706        pThis->rcOutput = VERR_TOO_MUCH_DATA;
    702707
    703708    /*
     
    743748     */
    744749    bool fBusy = ASMAtomicXchgBool(&pThis->fBusy, true);
    745     AssertReturn(fBusy, VERR_WRONG_ORDER);
     750    AssertReturn(!fBusy, VERR_WRONG_ORDER);
    746751
    747752    /*
     
    846851     */
    847852    bool fBusy = ASMAtomicXchgBool(&pThis->fBusy, true);
    848     AssertReturn(fBusy, VERR_WRONG_ORDER);
     853    AssertReturn(!fBusy, VERR_WRONG_ORDER);
    849854
    850855    /*
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