diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/src/ImageDataObject.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/ImageDataObject.cpp b/plugins/TabSRMM/src/ImageDataObject.cpp index 22346707f9..ba771838ca 100644 --- a/plugins/TabSRMM/src/ImageDataObject.cpp +++ b/plugins/TabSRMM/src/ImageDataObject.cpp @@ -32,8 +32,11 @@ #include "stdafx.h"
// returns true on success, false on failure
-bool CImageDataObject::InsertBitmap(IRichEditOle* pRichEditOle, HBITMAP hBitmap)
+bool CImageDataObject::InsertBitmap(IRichEditOle *pRichEditOle, HBITMAP hBitmap)
{
+ if (pRichEditOle == nullptr)
+ return false;
+
// Get the image data object
CImageDataObject *pods = new CImageDataObject;
CComPtr<IDataObject> lpDataObject;
|