VirtualBox

Changeset 41434 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 24, 2012 1:17:46 PM (13 years ago)
Author:
vboxsync
Message:

PDMAsyncCompletionFile: Allow empty files to be used (fixes tstPDMAsyncCompletionStress)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFile.cpp

    r39681 r41434  
    589589    int rc = RTFileGetSize(hFile, &cbFile);
    590590    if (RT_SUCCESS(rc))
    591     {
    592         if (cbFile != 0)
    593             *pcbSize = cbFile;
    594         else
    595             rc = VERR_INVALID_PARAMETER;
    596     }
     591        *pcbSize = cbFile;
    597592
    598593    return rc;
     
    887882
    888883            rc = pdmacFileEpNativeGetSize(hFile, &cbSize);
    889             Assert(RT_FAILURE(rc) || cbSize != 0);
    890884
    891885            if (RT_SUCCESS(rc) && ((cbSize % 512) == 0))
     
    946940
    947941        rc = pdmacFileEpNativeGetSize(pEpFile->hFile, (uint64_t *)&pEpFile->cbFile);
    948         Assert(RT_FAILURE(rc) || pEpFile->cbFile != 0);
    949 
    950942        if (RT_SUCCESS(rc))
    951943        {
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