ole32: StorageImpl_GetROBigBlock can return NULL so check for NULL before doing a memcpy.

This commit is contained in:
James Hawkins 2006-04-28 20:16:41 -05:00 committed by Alexandre Julliard
parent 72e279bd36
commit 2b5963f8e2

View File

@ -4493,6 +4493,8 @@ BOOL BlockChainStream_ReadAt(BlockChainStream* This,
*/
bigBlockBuffer =
StorageImpl_GetROBigBlock(This->parentStorage, blockIndex);
if (!bigBlockBuffer)
return FALSE;
memcpy(bufferWalker, bigBlockBuffer + offsetInBlock, bytesToReadInBuffer);