It is possible for a stream to have both small block and big block

chain as NULL.
This commit is contained in:
Thuy Nguyen 1999-07-10 10:13:50 +00:00 committed by Alexandre Julliard
parent 79a3f80008
commit 71b327f13e
1 changed files with 9 additions and 1 deletions

View File

@ -356,7 +356,15 @@ HRESULT WINAPI StgStreamImpl_Read(
pcbRead);
}
else
assert(FALSE);
{
/*
* Small and big block chains are both NULL. This case will happen
* when a stream starts with BLOCK_END_OF_CHAIN and has size zero.
*/
*pcbRead = 0;
return S_OK;
}
/*
* We should always be able to read the proper amount of data from the