Changeset 41434 in vbox for trunk/src/VBox/VMM
- Timestamp:
- May 24, 2012 1:17:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFile.cpp
r39681 r41434 589 589 int rc = RTFileGetSize(hFile, &cbFile); 590 590 if (RT_SUCCESS(rc)) 591 { 592 if (cbFile != 0) 593 *pcbSize = cbFile; 594 else 595 rc = VERR_INVALID_PARAMETER; 596 } 591 *pcbSize = cbFile; 597 592 598 593 return rc; … … 887 882 888 883 rc = pdmacFileEpNativeGetSize(hFile, &cbSize); 889 Assert(RT_FAILURE(rc) || cbSize != 0);890 884 891 885 if (RT_SUCCESS(rc) && ((cbSize % 512) == 0)) … … 946 940 947 941 rc = pdmacFileEpNativeGetSize(pEpFile->hFile, (uint64_t *)&pEpFile->cbFile); 948 Assert(RT_FAILURE(rc) || pEpFile->cbFile != 0);949 950 942 if (RT_SUCCESS(rc)) 951 943 {
Note:
See TracChangeset
for help on using the changeset viewer.