Module: wine Branch: master Commit: cf45f3bcc81337ad6642a2856521e8294282c711 URL: http://source.winehq.org/git/wine.git/?a=commit;h=cf45f3bcc81337ad6642a28565...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Wed Jun 7 00:29:37 2017 +0300
oleaut32: Add an arguments check to LoadTypeLibEx.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/oleaut32/typelib.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 1c00d71..b88e663 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -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);