Alistair Leslie-Hughes : ole32: Add pointer check.

Alexandre Julliard julliard at winehq.org
Tue Jan 2 15:01:23 CST 2018


Module: wine
Branch: stable
Commit: c0337fae4def9cef6ccdcd4644e993baf21e8845
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c0337fae4def9cef6ccdcd4644e993baf21e8845

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>
(cherry picked from commit fcc261adfd402133385820b06bf0d6589829fcf9)
Signed-off-by: Michael Stefaniuc <mstefani 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 2bc9d3d..bccb2f3 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