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:
Dmitry Timoshkov 2017-06-07 00:29:37 +03:00 committed by Alexandre Julliard
parent 7569f6c62e
commit cf45f3bcc8
1 changed files with 3 additions and 0 deletions

View File

@ -472,6 +472,9 @@ HRESULT WINAPI LoadTypeLibEx(
TRACE("(%s,%d,%p)\n",debugstr_w(szFile), regkind, pptLib);
if (!szFile || !pptLib)
return E_INVALIDARG;
*pptLib = NULL;
res = TLB_ReadTypeLib(szFile, szPath, MAX_PATH + 1, (ITypeLib2**)pptLib);