Commit d5c6c64b authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

msi: automation: Display an error on create_session failure.

parent 3909a499
...@@ -1026,11 +1026,13 @@ static HRESULT WINAPI InstallerImpl_Invoke( ...@@ -1026,11 +1026,13 @@ static HRESULT WINAPI InstallerImpl_Invoke(
V_VT(pVarResult) = VT_DISPATCH; V_VT(pVarResult) = VT_DISPATCH;
if ((ret = MsiOpenPackageExW(V_BSTR(&varg0), V_I4(&varg1), &msiHandle)) == ERROR_SUCCESS) if ((ret = MsiOpenPackageExW(V_BSTR(&varg0), V_I4(&varg1), &msiHandle)) == ERROR_SUCCESS)
{ {
if (SUCCEEDED(create_session(msiHandle, (IDispatch *)This, &pDispatch))) if (SUCCEEDED(hr = create_session(msiHandle, (IDispatch *)This, &pDispatch)))
{ {
IDispatch_AddRef(pDispatch); IDispatch_AddRef(pDispatch);
V_DISPATCH(pVarResult) = pDispatch; V_DISPATCH(pVarResult) = pDispatch;
} }
else
ERR("Failed to create Session object, hresult 0x%08x\n", hr);
} }
else else
{ {
......
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