Changeset 33973 in vbox for trunk/src/VBox/Runtime/common/zip
- Timestamp:
- Nov 11, 2010 11:10:10 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67635
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/zip/zipgzip.cpp
r33945 r33973 30 30 *******************************************************************************/ 31 31 #include "internal/iprt.h" 32 #include <iprt/ vfslowlevel.h>32 #include <iprt/zip.h> 33 33 34 34 #include <iprt/assert.h> … … 37 37 #include <iprt/poll.h> 38 38 #include <iprt/string.h> 39 #include <iprt/vfslowlevel.h> 40 39 41 #include <zlib.h> 40 42 … … 477 479 AssertPtrReturn(phVfsIosOut, VERR_INVALID_POINTER); 478 480 481 uint32_t cRefs = RTVfsIoStrmRetain(hVfsIosIn); 482 AssertReturn(cRefs != UINT32_MAX, VERR_INVALID_HANDLE); 483 479 484 /* 480 485 * Create the decompression I/O stream. … … 507 512 */ 508 513 size_t cbRead = 0; 509 rc = RTVfsIoStrmRead(pThis->hVfsIos, pThis->abBuffer, sizeof(RTZIPGZIPHDR), NULL /*pcbRead*/);514 rc = RTVfsIoStrmRead(pThis->hVfsIos, pThis->abBuffer, sizeof(RTZIPGZIPHDR), true /*fBlocking*/, NULL /*pcbRead*/); 510 515 if (RT_SUCCESS(rc)) 511 516 { … … 539 544 } 540 545 else 541 rc = rtZipGzipConvertErrFromZlib(pThis, rc); 546 rc = rtZipGzipConvertErrFromZlib(pThis, rc); /** @todo cleaning up in this situation is going to go wrong. */ 547 RTVfsIoStrmRelease(hVfsIos); 542 548 } 549 else 550 RTVfsIoStrmRelease(hVfsIosIn); 543 551 return rc; 544 552 }
Note:
See TracChangeset
for help on using the changeset viewer.