[Wine-patches] [eter-2.1 1/3] ole32: Add a check for hglobal pointer to GetHGlobalFromStream. (eterbug #10951).
Dmitry Timoshkov
dtimoshkov на etersoft.ru
Пт Фев 5 06:50:09 MSK 2016
---
dlls/ole32/hglobalstream.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c
index ce0f34c..bea2c96 100644
--- a/dlls/ole32/hglobalstream.c
+++ b/dlls/ole32/hglobalstream.c
@@ -622,10 +622,10 @@ HRESULT WINAPI GetHGlobalFromStream(IStream* pstm, HGLOBAL* phglobal)
{
HGLOBALStreamImpl* pStream;
- if (pstm == NULL)
+ if (!pstm || !phglobal)
return E_INVALIDARG;
- pStream = (HGLOBALStreamImpl*) pstm;
+ pStream = impl_from_IStream(pstm);
/*
* Verify that the stream object was created with CreateStreamOnHGlobal.
--
2.6.5
Подробная информация о списке рассылки Wine-patches