Rob Shearman : ole32: Fix Read/
WriteClassStm to return an error if the passed in stream pointer is
NULL.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 10 05:35:59 CST 2007
Module: wine
Branch: master
Commit: 35548d15c4bca00504915ea657d9db84cd7fb860
URL: http://source.winehq.org/git/wine.git/?a=commit;h=35548d15c4bca00504915ea657d9db84cd7fb860
Author: Rob Shearman <rob at codeweavers.com>
Date: Tue Jan 9 17:17:40 2007 +0000
ole32: Fix Read/WriteClassStm to return an error if the passed in stream pointer is NULL.
---
dlls/ole32/storage32.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index ac8264d..450d5cd 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -7901,7 +7901,7 @@ HRESULT WINAPI WriteClassStm(IStream *pS
{
TRACE("(%p,%p)\n",pStm,rclsid);
- if (rclsid==NULL)
+ if (!pStm || !rclsid)
return E_INVALIDARG;
return IStream_Write(pStm,rclsid,sizeof(CLSID),NULL);
@@ -7927,7 +7927,7 @@ HRESULT WINAPI ReadClassStm(IStream *pSt
TRACE("(%p,%p)\n",pStm,pclsid);
- if (pclsid==NULL)
+ if (!pStm || !pclsid)
return E_INVALIDARG;
res = IStream_Read(pStm,(void*)pclsid,sizeof(CLSID),&nbByte);
More information about the wine-cvs
mailing list