Juan Lang : msi: Set name in ACTION_AppSearchGetSignature.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 19 04:02:28 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 2590c081a1e3a5a44200952797a23572a7b5e711
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2590c081a1e3a5a44200952797a23572a7b5e711
Author: Juan Lang <juan_lang at yahoo.com>
Date: Tue Jul 18 06:50:35 2006 -0700
msi: Set name in ACTION_AppSearchGetSignature.
---
dlls/msi/appsearch.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c
index bea0c29..ce99eac 100644
--- a/dlls/msi/appsearch.c
+++ b/dlls/msi/appsearch.c
@@ -37,7 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msi);
typedef struct tagMSISIGNATURE
{
- LPWSTR Name; /* NOT owned by this structure */
+ LPCWSTR Name; /* NOT owned by this structure */
LPWSTR File;
DWORD MinVersionMS;
DWORD MinVersionLS;
@@ -95,6 +95,7 @@ static UINT ACTION_AppSearchGetSignature
TRACE("(package %p, sig %p)\n", package, sig);
memset(sig, 0, sizeof(*sig));
+ sig->Name = name;
rc = MSI_OpenQuery(package->db, &view, ExecSeqQuery, name);
if (rc == ERROR_SUCCESS)
{
@@ -951,9 +952,7 @@ UINT ACTION_AppSearch(MSIPACKAGE *packag
}
TRACE("Searching for Property %s, Signature_ %s\n",
debugstr_w(propBuf), debugstr_w(sigBuf));
- /* This clears all the fields, so set Name and Property afterward */
rc = ACTION_AppSearchGetSignature(package, &sig, sigBuf);
- sig.Name = sigBuf;
if (rc == ERROR_SUCCESS)
{
rc = ACTION_AppSearchComponents(package, &value, &sig);
More information about the wine-cvs
mailing list