Jon Griffiths : oleaut32: Null doc string params return E_INVALIDARG.
Alexandre Julliard
julliard at winehq.org
Mon Jun 30 08:27:46 CDT 2008
Module: wine
Branch: master
Commit: a1852086804d8b1d22193530072f6a76e4fcb909
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a1852086804d8b1d22193530072f6a76e4fcb909
Author: Jon Griffiths <jon_p_griffiths at yahoo.com>
Date: Sun Jun 29 05:52:23 2008 -0700
oleaut32: Null doc string params return E_INVALIDARG.
---
dlls/oleaut32/typelib2.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c
index 653e881..de8c7db 100644
--- a/dlls/oleaut32/typelib2.c
+++ b/dlls/oleaut32/typelib2.c
@@ -1275,6 +1275,8 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetDocString(
int offset;
TRACE("(%p,%s)\n", iface, debugstr_w(pStrDoc));
+ if (!pStrDoc)
+ return E_INVALIDARG;
offset = ctl2_alloc_string(This->typelib, pStrDoc);
if (offset == -1) return E_OUTOFMEMORY;
@@ -3154,6 +3156,8 @@ static HRESULT WINAPI ICreateTypeLib2_fnSetDocString(ICreateTypeLib2 * iface, LP
int offset;
TRACE("(%p,%s)\n", iface, debugstr_w(szDoc));
+ if (!szDoc)
+ return E_INVALIDARG;
offset = ctl2_alloc_string(This, szDoc);
if (offset == -1) return E_OUTOFMEMORY;
More information about the wine-cvs
mailing list