Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fa6bc9e5
Commit
fa6bc9e5
authored
Nov 27, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use MSI_QueryGetRecord in ACTION_AppSearchComponents.
parent
a1c969ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
54 deletions
+21
-54
appsearch.c
dlls/msi/appsearch.c
+21
-54
No files found.
dlls/msi/appsearch.c
View file @
fa6bc9e5
...
...
@@ -154,67 +154,34 @@ static void ACTION_FreeSignature(MSISIGNATURE *sig)
msi_free
(
sig
->
Languages
);
}
static
UINT
ACTION_AppSearchComponents
(
MSIPACKAGE
*
package
,
LPWSTR
*
appValue
,
MSISIGNATURE
*
sig
)
static
UINT
ACTION_AppSearchComponents
(
MSIPACKAGE
*
package
,
LPWSTR
*
appValue
,
MSISIGNATURE
*
sig
)
{
MSIQUERY
*
view
;
UINT
rc
;
static
const
WCHAR
ExecSeqQuery
[]
=
{
's'
,
'e'
,
'l'
,
'e'
,
'c'
,
't'
,
' '
,
'*
'
,
' '
,
'f'
,
'r'
,
'o'
,
'm
'
,
' '
,
'C'
,
'o'
,
'm'
,
'p'
,
'L'
,
'o'
,
'c'
,
'a'
,
't'
,
'o'
,
'r'
,
' '
,
'w'
,
'h'
,
'e'
,
'r'
,
'e'
,
' '
,
'S'
,
'i'
,
'g'
,
'n'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'_'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
}
;
static
const
WCHAR
query
[]
=
{
's'
,
'e'
,
'l'
,
'e'
,
'c'
,
't'
,
' '
,
'*'
,
' '
,
'f'
,
'r'
,
'o'
,
'm'
,
' '
,
'C'
,
'o'
,
'm'
,
'p'
,
'L'
,
'o'
,
'c'
,
'a'
,
't'
,
'o'
,
'r
'
,
' '
,
'w'
,
'h'
,
'e'
,
'r'
,
'e'
,
' '
,
'S'
,
'i'
,
'g'
,
'n'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'_'
,
' '
,
'=
'
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
MSIRECORD
*
row
;
LPWSTR
guid
;
TRACE
(
"(package %p, appValue %p, sig %p)
\n
"
,
package
,
appValue
,
sig
);
*
appValue
=
NULL
;
rc
=
MSI_OpenQuery
(
package
->
db
,
&
view
,
ExecSeqQuery
,
sig
->
Name
);
if
(
rc
==
ERROR_SUCCESS
)
{
MSIRECORD
*
row
=
0
;
WCHAR
guid
[
50
];
DWORD
sz
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
sig
->
Name
));
rc
=
MSI_ViewExecute
(
view
,
0
);
if
(
rc
!=
ERROR_SUCCESS
)
{
TRACE
(
"MSI_ViewExecute returned %d
\n
"
,
rc
);
goto
end
;
}
rc
=
MSI_ViewFetch
(
view
,
&
row
);
if
(
rc
!=
ERROR_SUCCESS
)
{
TRACE
(
"MSI_ViewFetch returned %d
\n
"
,
rc
);
rc
=
ERROR_SUCCESS
;
goto
end
;
}
/* get GUID */
guid
[
0
]
=
0
;
sz
=
sizeof
(
guid
)
/
sizeof
(
guid
[
0
]);
rc
=
MSI_RecordGetStringW
(
row
,
2
,
guid
,
&
sz
);
if
(
rc
!=
ERROR_SUCCESS
)
{
ERR
(
"Error is %x
\n
"
,
rc
);
goto
end
;
}
FIXME
(
"AppSearch unimplemented for CompLocator table (GUID %s)
\n
"
,
debugstr_w
(
guid
));
*
appValue
=
NULL
;
end:
if
(
row
)
msiobj_release
(
&
row
->
hdr
);
MSI_ViewClose
(
view
);
msiobj_release
(
&
view
->
hdr
);
}
else
row
=
MSI_QueryGetRecord
(
package
->
db
,
query
,
sig
->
Name
);
if
(
!
row
)
{
TRACE
(
"
MSI_OpenQuery returned %d
\n
"
,
rc
);
r
c
=
ERROR_SUCCESS
;
TRACE
(
"
failed to query CompLocator for %s
\n
"
,
debugstr_w
(
sig
->
Name
)
);
r
eturn
ERROR_SUCCESS
;
}
TRACE
(
"returning %d
\n
"
,
rc
);
return
rc
;
guid
=
msi_dup_record_field
(
row
,
2
);
FIXME
(
"AppSearch CompLocator (%s) unimplemented
\n
"
,
debugstr_w
(
guid
));
msi_free
(
guid
);
msiobj_release
(
&
row
->
hdr
);
return
ERROR_SUCCESS
;
}
static
void
ACTION_ConvertRegValue
(
DWORD
regType
,
const
BYTE
*
value
,
DWORD
sz
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment