Hans Leidekker : msi: Improve tracing in MsiQueryFeatureStateW.

Alexandre Julliard julliard at winehq.org
Wed Nov 17 10:38:03 CST 2010


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Nov 17 10:57:54 2010 +0100

msi: Improve tracing in MsiQueryFeatureStateW.

---

 dlls/msi/msi.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index b4a4142..ca8ed7d 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -2709,17 +2709,17 @@ INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature)
 
         msi_free(path);
     }
-
-    TRACE("%s %s -> %d\n", debugstr_w(szProduct), debugstr_w(szFeature), r);
     msi_free(components);
 
     if (missing)
-        return INSTALLSTATE_ADVERTISED;
-
-    if (source)
-        return INSTALLSTATE_SOURCE;
+        r = INSTALLSTATE_ADVERTISED;
+    else if (source)
+        r = INSTALLSTATE_SOURCE;
+    else
+        r = INSTALLSTATE_LOCAL;
 
-    return INSTALLSTATE_LOCAL;
+    TRACE("%s %s -> %d\n", debugstr_w(szProduct), debugstr_w(szFeature), r);
+    return r;
 }
 
 /******************************************************************




More information about the wine-cvs mailing list