Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
293bdffa
Commit
293bdffa
authored
Mar 02, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use a SQL marker to query the _Property table when fetching a property.
parent
f36e13fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
package.c
dlls/msi/package.c
+22
-2
No files found.
dlls/msi/package.c
View file @
293bdffa
...
...
@@ -1403,16 +1403,36 @@ UINT WINAPI MsiSetPropertyW( MSIHANDLE hInstall, LPCWSTR szName, LPCWSTR szValue
static
MSIRECORD
*
MSI_GetPropertyRow
(
MSIPACKAGE
*
package
,
LPCWSTR
name
)
{
MSIQUERY
*
view
;
MSIRECORD
*
rec
,
*
row
=
NULL
;
UINT
r
;
static
const
WCHAR
query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'`'
,
'V'
,
'a'
,
'l'
,
'u'
,
'e'
,
'`'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'_'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'_'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
'`'
,
'='
,
'
\''
,
'%'
,
's'
,
'\'
'
,
0
};
'='
,
'
?
'
,
0
};
if
(
!
name
||
!*
name
)
return
NULL
;
return
MSI_QueryGetRecord
(
package
->
db
,
query
,
name
);
rec
=
MSI_CreateRecord
(
1
);
if
(
!
rec
)
return
NULL
;
MSI_RecordSetStringW
(
rec
,
1
,
name
);
r
=
MSI_DatabaseOpenViewW
(
package
->
db
,
query
,
&
view
);
if
(
r
==
ERROR_SUCCESS
)
{
MSI_ViewExecute
(
view
,
rec
);
MSI_ViewFetch
(
view
,
&
row
);
MSI_ViewClose
(
view
);
msiobj_release
(
&
view
->
hdr
);
}
msiobj_release
(
&
rec
->
hdr
);
return
row
;
}
/* internal function, not compatible with MsiGetPropertyW */
...
...
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