James Hawkins : msi: AppSearchReg shouldn't create the key it' s looking for if it doesn't exist.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 11 11:03:09 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 3b506c640866025eb791e806d756330cdb2b01d0
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=3b506c640866025eb791e806d756330cdb2b01d0

Author: James Hawkins <truiken at gmail.com>
Date:   Sun Jul  9 20:17:42 2006 -0700

msi: AppSearchReg shouldn't create the key it's looking for if it doesn't exist.

---

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

diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c
index 44c5256..6f173dc 100644
--- a/dlls/msi/appsearch.c
+++ b/dlls/msi/appsearch.c
@@ -310,7 +310,7 @@ static UINT ACTION_AppSearchReg(MSIPACKA
                 goto end;
         }
 
-        rc = RegCreateKeyW(rootKey, keyPath, &key);
+        rc = RegOpenKeyW(rootKey, keyPath, &key);
         if (rc)
         {
             TRACE("RegCreateKeyW returned %d\n", rc);




More information about the wine-cvs mailing list