Alistair Leslie-Hughes : ole32: Add pointer check.
Module: wine Branch: master Commit: fcc261adfd402133385820b06bf0d6589829fcf9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fcc261adfd402133385820b06b... Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Sep 26 01:12:52 2017 +0000 ole32: Add pointer check. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ole32/storage32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 2da7a99..51f178b 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -7267,6 +7267,8 @@ BlockChainStream* BlockChainStream_Construct( BlockChainStream* newStream; newStream = HeapAlloc(GetProcessHeap(), 0, sizeof(BlockChainStream)); + if(!newStream) + return NULL; newStream->parentStorage = parentStorage; newStream->headOfStreamPlaceHolder = headOfStreamPlaceHolder;
participants (1)
-
Alexandre Julliard