Commit 9a8fc063 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

DWORD at offset 0x40 in the header is the number of big blocks in the

small block depot chain. Better failure handling.
parent 10cd651e
...@@ -42,6 +42,7 @@ static const ULONG OFFSET_SMALLBLOCKSIZEBITS = 0x00000020; ...@@ -42,6 +42,7 @@ static const ULONG OFFSET_SMALLBLOCKSIZEBITS = 0x00000020;
static const ULONG OFFSET_BBDEPOTCOUNT = 0x0000002C; static const ULONG OFFSET_BBDEPOTCOUNT = 0x0000002C;
static const ULONG OFFSET_ROOTSTARTBLOCK = 0x00000030; static const ULONG OFFSET_ROOTSTARTBLOCK = 0x00000030;
static const ULONG OFFSET_SBDEPOTSTART = 0x0000003C; static const ULONG OFFSET_SBDEPOTSTART = 0x0000003C;
static const ULONG OFFSET_SBDEPOTCOUNT = 0x00000040;
static const ULONG OFFSET_EXTBBDEPOTSTART = 0x00000044; static const ULONG OFFSET_EXTBBDEPOTSTART = 0x00000044;
static const ULONG OFFSET_EXTBBDEPOTCOUNT = 0x00000048; static const ULONG OFFSET_EXTBBDEPOTCOUNT = 0x00000048;
static const ULONG OFFSET_BBDEPOTSTART = 0x0000004C; static const ULONG OFFSET_BBDEPOTSTART = 0x0000004C;
...@@ -442,9 +443,10 @@ void StorageImpl_FreeBigBlock( ...@@ -442,9 +443,10 @@ void StorageImpl_FreeBigBlock(
StorageImpl* This, StorageImpl* This,
ULONG blockIndex); ULONG blockIndex);
ULONG StorageImpl_GetNextBlockInChain( HRESULT StorageImpl_GetNextBlockInChain(
StorageImpl* This, StorageImpl* This,
ULONG blockIndex); ULONG blockIndex,
ULONG* nextBlockIndex);
void StorageImpl_SetNextBlockInChain( void StorageImpl_SetNextBlockInChain(
StorageImpl* This, StorageImpl* This,
...@@ -843,9 +845,10 @@ void SmallBlockChainStream_Destroy( ...@@ -843,9 +845,10 @@ void SmallBlockChainStream_Destroy(
ULONG SmallBlockChainStream_GetHeadOfChain( ULONG SmallBlockChainStream_GetHeadOfChain(
SmallBlockChainStream* This); SmallBlockChainStream* This);
ULONG SmallBlockChainStream_GetNextBlockInChain( HRESULT SmallBlockChainStream_GetNextBlockInChain(
SmallBlockChainStream* This, SmallBlockChainStream* This,
ULONG blockIndex); ULONG blockIndex,
ULONG* nextBlockIndex);
void SmallBlockChainStream_SetNextBlockInChain( void SmallBlockChainStream_SetNextBlockInChain(
SmallBlockChainStream* This, SmallBlockChainStream* This,
...@@ -885,6 +888,3 @@ ULONG SmallBlockChainStream_GetCount( ...@@ -885,6 +888,3 @@ ULONG SmallBlockChainStream_GetCount(
#endif /* __STORAGE32_H__ */ #endif /* __STORAGE32_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment