Commit 71b327f1 authored by Thuy Nguyen's avatar Thuy Nguyen Committed by Alexandre Julliard

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

chain as NULL.
parent 79a3f800
......@@ -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
......
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