ole32: Fix Read/WriteClassStm to return an error if the passed in
stream pointer is NULL.
Robert Shearman
rob at codeweavers.com
Tue Jan 9 11:17:40 CST 2007
---
dlls/ole32/storage32.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
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-patches
mailing list