Alistair Leslie-Hughes : ole32: Add pointer check.

Alexandre Julliard julliard at winehq.org
Wed Sep 27 17:54:50 CDT 2017


Module: wine
Branch: master
Commit: fcc261adfd402133385820b06bf0d6589829fcf9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fcc261adfd402133385820b06bf0d6589829fcf9

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Tue Sep 26 01:12:52 2017 +0000

ole32: Add pointer check.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;




More information about the wine-cvs mailing list