Misha Koshelev : msi: automation: Display an error on create_session failure.

Alexandre Julliard julliard at wine.codeweavers.com
Tue May 8 13:16:59 CDT 2007


Module: wine
Branch: master
Commit: d5c6c64bfc8f9143e7baff4cafdb4850456b267e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d5c6c64bfc8f9143e7baff4cafdb4850456b267e

Author: Misha Koshelev <mk144210 at bcm.edu>
Date:   Tue May  8 07:40:06 2007 -0500

msi: automation: Display an error on create_session failure.

---

 dlls/msi/automation.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/automation.c b/dlls/msi/automation.c
index c732163..e8cb887 100644
--- a/dlls/msi/automation.c
+++ b/dlls/msi/automation.c
@@ -1026,11 +1026,13 @@ static HRESULT WINAPI InstallerImpl_Invoke(
                 V_VT(pVarResult) = VT_DISPATCH;
 		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);
                         V_DISPATCH(pVarResult) = pDispatch;
                     }
+                    else
+                        ERR("Failed to create Session object, hresult 0x%08x\n", hr);
                 }
 		else
                 {




More information about the wine-cvs mailing list