Commit 11c83c5d authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

oleaut32: Zero out parameter in LoadRegTypeLib in case of failure.

parent aa221462
......@@ -392,7 +392,11 @@ HRESULT WINAPI LoadRegTypeLib(
ITypeLib **ppTLib)
{
BSTR bstr=NULL;
HRESULT res=QueryPathOfRegTypeLib( rguid, wVerMajor, wVerMinor, lcid, &bstr);
HRESULT res;
*ppTLib = NULL;
res = QueryPathOfRegTypeLib( rguid, wVerMajor, wVerMinor, lcid, &bstr);
if(SUCCEEDED(res))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment