It is possible for a stream to have both small block and big block
chain as NULL.
This commit is contained in:
parent
79a3f80008
commit
71b327f13e
|
@ -356,7 +356,15 @@ HRESULT WINAPI StgStreamImpl_Read(
|
||||||
pcbRead);
|
pcbRead);
|
||||||
}
|
}
|
||||||
else
|
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
|
* We should always be able to read the proper amount of data from the
|
||||||
|
|
Loading…
Reference in New Issue