oleaut32: Add an arguments check to LoadTypeLibEx.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7569f6c62e
commit
cf45f3bcc8
|
@ -472,6 +472,9 @@ HRESULT WINAPI LoadTypeLibEx(
|
||||||
|
|
||||||
TRACE("(%s,%d,%p)\n",debugstr_w(szFile), regkind, pptLib);
|
TRACE("(%s,%d,%p)\n",debugstr_w(szFile), regkind, pptLib);
|
||||||
|
|
||||||
|
if (!szFile || !pptLib)
|
||||||
|
return E_INVALIDARG;
|
||||||
|
|
||||||
*pptLib = NULL;
|
*pptLib = NULL;
|
||||||
|
|
||||||
res = TLB_ReadTypeLib(szFile, szPath, MAX_PATH + 1, (ITypeLib2**)pptLib);
|
res = TLB_ReadTypeLib(szFile, szPath, MAX_PATH + 1, (ITypeLib2**)pptLib);
|
||||||
|
|
Loading…
Reference in New Issue