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

This commit is contained in:
James Hawkins 2006-07-09 20:17:42 -07:00 committed by Alexandre Julliard
parent 700adac9ac
commit 3b506c6408
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, BOOL *appFound,
goto end;
}
rc = RegCreateKeyW(rootKey, keyPath, &key);
rc = RegOpenKeyW(rootKey, keyPath, &key);
if (rc)
{
TRACE("RegCreateKeyW returned %d\n", rc);