mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
ole32: StorageImpl_GetROBigBlock can return NULL so check for NULL before doing a memcpy.
This commit is contained in:
parent
72e279bd36
commit
2b5963f8e2
@ -4493,6 +4493,8 @@ BOOL BlockChainStream_ReadAt(BlockChainStream* This,
|
||||
*/
|
||||
bigBlockBuffer =
|
||||
StorageImpl_GetROBigBlock(This->parentStorage, blockIndex);
|
||||
if (!bigBlockBuffer)
|
||||
return FALSE;
|
||||
|
||||
memcpy(bufferWalker, bigBlockBuffer + offsetInBlock, bytesToReadInBuffer);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user