Changeset 34413 in vbox
- Timestamp:
- Nov 26, 2010 5:01:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp
r34410 r34413 397 397 { 398 398 RTVFSLOCKINTERNAL *pThis = hLock; 399 if (pThis == NIL_RTVFSLOCK) 400 return 0; 399 401 AssertPtrReturn(pThis, UINT32_MAX); 400 402 AssertReturn(pThis->enmType > RTVFSLOCKTYPE_INVALID && pThis->enmType < RTVFSLOCKTYPE_END, UINT32_MAX); … … 875 877 { 876 878 RTVFSOBJINTERNAL *pThis = hVfsObj; 879 if (pThis == NIL_RTVFSOBJ) 880 return 0; 877 881 AssertPtrReturn(pThis, UINT32_MAX); 878 882 AssertReturn(pThis->uMagic == RTVFSOBJ_MAGIC, UINT32_MAX); … … 1646 1650 { 1647 1651 RTVFSFSSTREAMINTERNAL *pThis = hVfsFss; 1652 if (pThis == NIL_RTVFSFSSTREAM) 1653 return 0; 1648 1654 AssertPtrReturn(pThis, UINT32_MAX); 1649 1655 AssertReturn(pThis->uMagic == RTVFSFSSTREAM_MAGIC, UINT32_MAX); … … 1702 1708 { 1703 1709 RTVFSDIRINTERNAL *pThis = hVfsDir; 1710 if (pThis == NIL_RTVFSDIR) 1711 return 0; 1704 1712 AssertPtrReturn(pThis, UINT32_MAX); 1705 1713 AssertReturn(pThis->uMagic == RTVFSDIR_MAGIC, UINT32_MAX); … … 1771 1779 { 1772 1780 RTVFSSYMLINKINTERNAL *pThis = hVfsSym; 1781 if (pThis == NIL_RTVFSSYMLINK) 1782 return 0; 1773 1783 AssertPtrReturn(pThis, UINT32_MAX); 1774 1784 AssertReturn(pThis->uMagic == RTVFSSYMLINK_MAGIC, UINT32_MAX); … … 1914 1924 { 1915 1925 RTVFSIOSTREAMINTERNAL *pThis = hVfsIos; 1926 if (pThis == NIL_RTVFSIOSTREAM) 1927 return 0; 1916 1928 AssertPtrReturn(pThis, UINT32_MAX); 1917 1929 AssertReturn(pThis->uMagic == RTVFSIOSTREAM_MAGIC, UINT32_MAX); … … 2351 2363 { 2352 2364 RTVFSFILEINTERNAL *pThis = hVfsFile; 2365 if (pThis == NIL_RTVFSFILE) 2366 return 0; 2353 2367 AssertPtrReturn(pThis, UINT32_MAX); 2354 2368 AssertReturn(pThis->uMagic == RTVFSFILE_MAGIC, UINT32_MAX);
Note:
See TracChangeset
for help on using the changeset viewer.